Posted by Erwin Moller on 10/24/06 13:48
sahm wrote:
>
> Kimmo Laine wrote:
>> "sahm" <sahm007@gmail.com> wrote in message
>> news:1161690585.256450.151220@b28g2000cwb.googlegroups.com...
>> > Hi evreone,
>> > I need help
>> > how can I send data from html list to php code
>>
>> A very simple example:
>>
>> <form action="page.php" method="post">
>> <input type="text" name="foo"/>
>> <input type="text" name="bar"/>
>> <input type="submit"/>
>> </form>
>>
>> page.php could be:
>>
>> <?php
>> echo $_POST['foo'];
>> echo $_POST['bar'];
>> ?>
>>
>> But what do you mean by a list? like <li>list</li> ??? You gotta have a
>> form and some inputs. A list has no such functionality...
>>
>> --
>> "Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpk
>> http://outolempi.net/ahdistus/ - Satunnaisesti päivittyvä nettisarjis
>> spam@outolempi.net | rot13(xvzzb@bhgbyrzcv.arg)
>
> Kimmo Laine thank you for your reply
> I mean by list this list
>
> <li>
> <ul>s</ul>
> <li>h1</li>
> <li>h2</li>
> <li>h3</li>
> </li>
>
> and so What I have to do now?
> Plz help me
You don't.
You send a form to a page.
In the form you can use elements like
<input type="text" name="firstname">
or
<SELECT name="regio">
<OPTION value="Europe">Europe
<OPTION value="Asia">Asia
<OPTION value="USA">USA
</SELECT>
and lots more.
I would suggest you get a book on the subject (HMTL and Forms) before
starting with PHP.
This is a great place to start:
http://www.w3schools.com/
It contains many good simple tutorials.
Good luck.
Regards,
Erwin Moller
Navigation:
[Reply to this message]
|