You are here: Re: retaiing values when resubmitting a page « PHP Programming Language « IT news, forums, messages
Re: retaiing values when resubmitting a page

Posted by David Haynes on 05/29/06 18:55

Ian Davies wrote:
> Hello
>
> does anyone know how I can retain values of a radio button and text in a
> text box on a page when I use $_SERVER['PHP_SELF'] to requery a page? Im
> sure Ive seen this done before but cant find the code
>
> Thanks
> Ian
>
>

The radio button and text are contained within a <form></form> tag set.
The <form> tag will have either method="GET" or method="POST"

If method="GET", you can read back the values using:
$foo = $_GET['foo'] where 'foo' is the name of your radio selector or
text field.

If method="POST", you can read back the values using:
$foo = $_POST['foo'];

-david-

 

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

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