RE: Sending someone to a new location...

2001-10-10 Thread Grierson, Garry (UK07)
You are absolutely right, that is much shorter ;) I assumed James was a relatively new, newbey (sorry if I'm wrong James!) and tried to show as clearly as possible what was happening to make the connection. It is worth mentioning that if using the 'Location' header it may require the 3XX type sta

RE: Sending someone to a new location...

2001-10-10 Thread Jan-Willem Haaring
This is even shorter: if ($requirement == $iscorrect) { $url="./html/default.html"; } else { $url="./html/login.html"; } print "Location: $url\n\n"; - Jan-Willem On Wed, 10 Oct 2001, Grierson, Garry (UK07) wrote: > You can try something like this : > > if ($requirement == $iscorrect){ # Se

RE: Sending someone to a new location...

2001-10-10 Thread Grierson, Garry (UK07)
You can try something like this : if ($requirement == $iscorrect){ # Send to default page print < # Or whatever the URL you want is > HTML_SCRIPT1

Re: Sending someone to a new location...

2001-10-08 Thread Brett W. McCoy
On Mon, 8 Oct 2001, _brian_d_foy wrote: > > print "Location: $url\n\n"; > > > > This must be the only header sent to the browser. It won't work if http > > headers have already been sent. > > that's a bit misleading. as with any CGI script, there is only > one header. in a redirection, a Locat

Re: Sending someone to a new location...

2001-10-08 Thread _brian_d_foy
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Brett W. McCoy) wrote: > print "Location: $url\n\n"; > > This must be the only header sent to the browser. It won't work if http > headers have already been sent. that's a bit misleading. as with any CGI script, there is only one header. i

Re: Sending someone to a new location...

2001-10-08 Thread Brett W. McCoy
On Mon, 8 Oct 2001, James Kelty wrote: > I would like to be able to send someone automatically to another page when > requirements in a for are filled out correctly. Other that presenting a link > I can figure out how to do this. > > Example: > > Someone correctly fills out a user/pass form and i