-
<input type = "submit" name = "ok" value = "<? php echo $ _POST ['no'];?>"> -
<input type = "submit" name = "ok" value = "ok">
what if I want to send parameters using submit. if i use the number 2 then value on submit = “ok”, but the parameters that will be sent is “ok”. but when using the number 1, then the value on submit depending on the value of $ _POST [‘no’], but managed to send parameters.
I want to ask how can I make permanent value “ok” but sends the parameters depend on $ _POST [‘no’]?
Add a second
<input>element to maintain the value of$_POST['no']. HTML provides the<input type="hidden">input for this explicit purpose: