|
Posted by Edwin Barrios on 08/01/05 22:41
Hi . !
what you want it's recive values from a "select". !!!
First a select input send ( when the form is submitted ), the value of
the selected item, then
the php script that it's the form action recive, a on post or get a
variable with the name of the select input with this value.
Then you have:
This the html source
<form method="post" action="test.php">
<select class="textbox" name="loan_process">
<option value="1"
selected="selected">Purchase</option>
<option
value="2">Construct Home</option>
<option>
</select>
</form>
On the php source:
<?php
if(isset($_POST["loan_process"]))
echo $_POST["loan_process"];
?>
That it's all.
>
>
> On 8/1/05, Bruce Gilbert <webguync@gmail.com> wrote:
> > can anyone give me an idea on how to return info. from a forl pulldown menu
> >
> > eg:
> >
> > <select class="textbox"
> > name="loan_process">
> > <option value=""
> > selected="selected">Purchase</option>
> > <option
> > value="">Construct Home</option>
> > <option>
> > </select>
> >
> > and return that to an email address.
> >
> >
> > thanks
> >
> >
> >
> > --
> > ::Bruce::
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
Navigation:
[Reply to this message]
|