Hey,
On my website it has a form with a drop down box. This form also has a PHP error/incomplete checker on the form. However. When the error checker is run, the DD box is reset to the first default value.
Is there a way to recall the Drop Down box's position using PHP (or even JS).
Of course I don't want the form just to be that value.
Example:
Crappy Example with probably heaps of error, you hopefully get my point...
This would return only the 1 value. Whereas i want the DD box to return all the values, But the Selected Value is the one posted.
Thanks For All your help.
On my website it has a form with a drop down box. This form also has a PHP error/incomplete checker on the form. However. When the error checker is run, the DD box is reset to the first default value.
Is there a way to recall the Drop Down box's position using PHP (or even JS).
Of course I don't want the form just to be that value.
Example:
| Code: |
|
<?php $DD = $_REQUEST['DD']; if(empty($name)) { echo '<select name="DD"> <option value='.$DD.'>'.$DD.'</option> </select>'; ?> |
Crappy Example with probably heaps of error, you hopefully get my point...
This would return only the 1 value. Whereas i want the DD box to return all the values, But the Selected Value is the one posted.
Thanks For All your help.
