Re: Variables not passed to next page

From: Date: Sat, 31 Jul 2004 18:12:22 +0000
Subject: Re: Variables not passed to next page
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-192410@lists.php.net to get a copy of this message
On Sunday 01 August 2004 01:40, Andre Dubuc wrote: > I have attempted to post variables from a simple page: edit-news.php to > edit-news-x.php, then load them into a session for re-use -- I use output > buffering. They do not pass. The code: > > > [edit-news] > .... > <?php session_start(); ob_start(); ?> > $news = "A few paragraphs"; > > print "<input type='text' name='news'>"; > print "<input type='submit' name='submit' value='Submit > Changes'>"; > .... > ?> Do you actually have <form> tags? And with the appropriate method? > $_SESSION['news'] = $_POST['news'] What does print_r($_POST) show? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* I don't deserve this award, but I have arthritis and I don't deserve that either. -- Jack Benny */

« previous php.general (#192410) next »