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
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to