Re: Re: simple ?- load page after submit

From: Date: Fri, 23 Jan 2004 17:18:02 +0000
Subject: Re: Re: simple ?- load page after submit
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-175546@lists.php.net to get a copy of this message
Matt Hedges wrote:
That doesn't work... I think the problem may be because I don't have the id defined anywhere in the code (but it automatically writes it to MySQL).
Huh? Is this from an auto increment field in MySQL...when a new user signs-up?
When I put the code below, I get a "can't send header" error.
You have to use the header() function BEFORE any output is sent to the browser...or you could buffer the output.
I tried changing the echo to <a href="page.php?id=$id">page</a>, but the page brings up page.php?id= (id = nothing).
Where is 'id' coming from? A form post? New db entry? Existing db entry? -- By-Tor.com It's all about the Rush http://www.by-tor.com

« previous php.general (#175546) next »