Re: PHP redirect script



Jerry Stuckle wrote:
Hugh Oxford wrote:
Xafke wrote:
Hi..

I've searched hours on this, but found nothing. I need a script that
redirect a user by it's input. For example a users types 'Google' in
the form, than it will redirect to lets say 'http://www.google.net'
Or 'A NAME' redirect to 'http://www.anything.biz'

I like it in PHP and MySQL, because put it all in a file slows my
server down..


Also, I would like a free script.

Thanks!

header('Location: $location');

That will try to redirect the user to http://$location. I think you wanted double quotes around it.


.... which is why I always write these as
header("Location: " . $location);

Never a confusion as to what is or is not expanded when doing it my way.
.



Relevant Pages

  • Re: LDAP query information
    ... a "Dim" statement. ... script is run. ... Microsoft MVP Scripting and ADSI ... to redirect the output to a text file: ...
    (microsoft.public.windows.server.scripting)
  • Re: Page_Load method issues with Back Button
    ... startup script if it should run or not. ... redirect set the hidden field to a different value. ... Instead the client receives the response.redirect and still ... I have created a webform. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: PHP file download counter
    ... This will log the request to a flat file then redirect the ... // Class SimpleRedirectLog ... $err = false; ... Write a script that supplies the file download with the correct mime type ...
    (comp.lang.php)
  • Re: Redirect sends to cc recipients again. Bug?
    ... to redirect outgoing mail to an email account that I only open/receive ... Create an outgoing message and have a copy of that sent to another ... Try using this script instead of redirecting. ... Entourage Help Page for download if that would help. ...
    (microsoft.public.mac.office.entourage)
  • Re: MF Server rts32 does not run in AIX 5.3L batch queue
    ... I can't redirect output to /dev/null as the program running under the ... configuration of the queue device for the job queue. ... > If your script has a command like ...
    (comp.lang.cobol)