hammerslane
12-17-2003, 09:46 AM
hiya folks
i know the code in the subject isn't right.
i'm going to explain my simple problem, extremely thoroughly, just so you know exactly what i'm trying to do.
i have three pages.
1.html
2.php
3.php
1.html: define $option for the first time
there is quite simply a page with four links;<a href="2.php?option=1">
<a href="2.php?option=2">
<a href="2.php?option=3">
<a href="2.php?option=4">
2.php: confirm the value of $option, it should display whatever link was clicked on 1.html
there is a simple form, a drop down list and a submit button.<form action="3.php">
<select name="option" code should go here??>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
</form>
3.php
<?
echo $option;
?>
in a nutshell, i basically want a drop down box to display a value which has been defined on a previous page. i thought that maybe the code in the subject was on the right lines... or maybe it's just not possible to do using just html.
many thanks
i know the code in the subject isn't right.
i'm going to explain my simple problem, extremely thoroughly, just so you know exactly what i'm trying to do.
i have three pages.
1.html
2.php
3.php
1.html: define $option for the first time
there is quite simply a page with four links;<a href="2.php?option=1">
<a href="2.php?option=2">
<a href="2.php?option=3">
<a href="2.php?option=4">
2.php: confirm the value of $option, it should display whatever link was clicked on 1.html
there is a simple form, a drop down list and a submit button.<form action="3.php">
<select name="option" code should go here??>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
</form>
3.php
<?
echo $option;
?>
in a nutshell, i basically want a drop down box to display a value which has been defined on a previous page. i thought that maybe the code in the subject was on the right lines... or maybe it's just not possible to do using just html.
many thanks