i have a hidden element in my form, and when i want to get the posted value
$variable=$_POST["variablex"]
i dont get anything,on the other case when i do the post on button (submit) it does take a default value… HELP ???
<input type="hidden" name="variablex" id="variablex" value="555" />
<a onclick=" document.getElementById('variablex').value='123';
document.getElementById('myform').submit();">123</a>
if anyone can send me link of example or tell me how to do it.
thanks 🙂
The syntax is ok , try to see if there is the same id of a different element or the same name of forms, or maybe if u use master page check there if there is same name form or hidden variable, ive tested ur code and it works fine…greets