Reply to Re: [PHP] returning info. from a form selection

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация