You are here: Re: Sending a string with $_POST/$_GET « PHP « IT news, forums, messages
Re: Sending a string with $_POST/$_GET

Posted by Luis on 10/20/38 11:16

Ross wrote:
> I want to write a string to a variable and use $_POST or $_GET to retrieve
> it on another page.
>
> I keep gettting an undefined index errror. Can someone show me how this is
> done?
>
> Do I have to use session_start() ?

or just use cookies:
setcookie('myvarname', 'some value');

and in the other page:
echo $_COOKIE['myvarname'];
will output 'some value'

regards

 

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

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