On Saturday 31 July 2004 02:12 pm, Jason Wong wrote:
> 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
> */



Hi Jason,

Yes the first page has the appropriate <form> tags:

{edit-news.php]
<form action="edit-news-x.php" method="post"> . . . </form>

The second and third pages [edit-news-x.php/ edit-submit.php] are pure php (a 
pass-through page) -- I wasn't aware they needed these tags as well. Hmm . . 
. that might explain why they weren't passed -- I must be getting old :> . . 
.

Thanks -- I've stared at these pages way too long. Also, it's not my code, but 
I'm patching new stuff into working code - oh ugh!

Thanks,
I'll try adding the tags.
Andre

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

Reply via email to