pucca
September 13th, 2006, 01:28 PM
Hi, Hope you can help!
My php form gets validated on another file.
If someone, for example, don't enter an email address.. it redirects the person back to the form. I've managed to keep the info they have entered in the fields, when they get redirected. Except for the radiobuttons and the check buttons. How do you do that?
Here's my td with the radiobuttons.
<td align="left">Yes<input name="ownweb" type="radio" value="yes" />
No<input name="ownweb" type="radio" value="no" checked="checked" /> </td>
And heres my urlencode for the rest of the fields (that is on the validate file) :
$data_query = '&agree=' . urlencode($gagree) .'&country=' . urlencode($gcountry) . '®ion=' . urlencode($gregion) . '&town=' . urlencode($gtown) . '&name=' . urlencode($gname) . '&surname=' . urlencode($gsurname) . '&worktel=' . urlencode($gworktel) . '&fax=' . urlencode($gfax) . '&mobile=' . urlencode($gmobile) . '&email=' . urlencode($gemail) . '&ownweb=' . urlencode($gownweb) . '&ownwebsite=' . urlencode($gownwebsite) . '&postal=' . urlencode($gpostal) . '&address=' . urlencode($gaddress);
in above php code, the &agree is a checkbutton and the $ownweb is a radiobutton. - Not sure if I should do it this way, or is it javascript?
Please help!
Thanx!
My php form gets validated on another file.
If someone, for example, don't enter an email address.. it redirects the person back to the form. I've managed to keep the info they have entered in the fields, when they get redirected. Except for the radiobuttons and the check buttons. How do you do that?
Here's my td with the radiobuttons.
<td align="left">Yes<input name="ownweb" type="radio" value="yes" />
No<input name="ownweb" type="radio" value="no" checked="checked" /> </td>
And heres my urlencode for the rest of the fields (that is on the validate file) :
$data_query = '&agree=' . urlencode($gagree) .'&country=' . urlencode($gcountry) . '®ion=' . urlencode($gregion) . '&town=' . urlencode($gtown) . '&name=' . urlencode($gname) . '&surname=' . urlencode($gsurname) . '&worktel=' . urlencode($gworktel) . '&fax=' . urlencode($gfax) . '&mobile=' . urlencode($gmobile) . '&email=' . urlencode($gemail) . '&ownweb=' . urlencode($gownweb) . '&ownwebsite=' . urlencode($gownwebsite) . '&postal=' . urlencode($gpostal) . '&address=' . urlencode($gaddress);
in above php code, the &agree is a checkbutton and the $ownweb is a radiobutton. - Not sure if I should do it this way, or is it javascript?
Please help!
Thanx!