Hi.
have a problem with the transmission of a variable which is not in a field from a php form to a php file. This syntax :
<form name="FormName" action="newuseranswer.php?randompass=$randompass" method="post">
doesn't work, the variable randompass isn't transmitted.
Who can help ?
variable transmission problem from php form
Moderator: General Moderators
- orangeapple
- Forum Commoner
- Posts: 70
- Joined: Tue Jan 06, 2004 1:24 pm
- Location: Geneva / Switzerland
You can not send a variable in the URL (GET) as you send a form (POST).
Instead you must create a hidden field in your form:
Hope this helps.
Tu es à Genève ? Où ça ?
Dr Evil
Instead you must create a hidden field in your form:
Code: Select all
<input type="hidden" name="randompass" value="<?=$randompass;?>">Tu es à Genève ? Où ça ?
Dr Evil
- orangeapple
- Forum Commoner
- Posts: 70
- Joined: Tue Jan 06, 2004 1:24 pm
- Location: Geneva / Switzerland