You are here: Re: form and submit key « PHP Programming Language « IT news, forums, messages
Re: form and submit key

Posted by Gulasch on 07/07/06 09:11

Sonnich schrieb:
> Hi
>
> one thing more.
>
> Say, I have a <form> with 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--

 

Navigation:

[Reply to this 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

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