Re: returning info. from a form selection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 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@xxxxxxxxx> 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
> >
> >
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux