"sahm" <sahm007@gmail. comwrote in message
news:1161690585 .256450.151220@ b28g2000cwb.goo glegroups.com.. .
Hi evreone,
I need help
how can I send data from html list to php code
>
A very simple example:
>
<form action="page.ph p" 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@bhg byrzcv.arg)
Kimmo Laine thank you for your reply
I mean by list this list
>"sahm" <sahm007@gmail. comwrote in message
>news:116169058 5.256450.151220 @b28g2000cwb.go oglegroups.com. ..
Hi evreone,
I need help
how can I send data from html list to php code
>>
>A very simple example:
>>
><form action="page.ph p" 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@bhg byrzcv.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">As ia
<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.
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.
You can't. It's PHP that "sends data to HTML" (sic),
not the other way around.
--
I (almost) never check the dodgeit address.
If you *really* need to mail me, use the address in the Reply-To
header with a message in *plain* *text* *without* *attachments*.
"Pedro Graca" <hexkid@dodgeit .comwrote in message
news:slrnejs7ng .5up.hexkid@ID-203069.user.ind ividual.net...
sahm wrote:
>how can I send data from html list to php code
>
You can't. It's PHP that "sends data to HTML" (sic),
not the other way around.
Of course, but you knew what he **really** meant by that statement. He
meant "How does he extract values from the html to use in php code to do
something. So, he should be using $_POST['name_of_item'] -- but, of course,
he needs to have a form.
Comment