By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,960 Members | 990 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,960 IT Pros & Developers. It's quick & easy.

form and submit key

P: n/a
Hi

one thing more.

Say, I have a <formwith a text input and a submit button - how do I
then get the data when reloading or how?

Sorry, this is probably simple... but to me it is new.

BR
Sonnich

Jul 7 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Sonnich schrieb:
Hi

one thing more.

Say, I have a <formwith a text input and a submit button - how do I
then get the data when reloading or how?

Sorry, this is probably simple... but to me it is new.

BR
Sonnich
If you have for example

--snip 1.php--
<form method=post action=2.php>
<input type=text name='something'>
<input type=submit value='Send'>
</form>
--snap 1.php--

you can read the contents of the text-field in 2.php by using
$_POST['something'].

So for example you could do

--snip 2.php--

echo "Hello ". $_POST['something'] ."!";

--snap 2.php--
Jul 7 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.