Auto Send URL

Chris Rebert clp2 at rebertia.com
Sat Jul 18 13:32:25 EDT 2009


On Fri, Jul 17, 2009 at 6:02 AM, Victor Subervi<victorsubervi at gmail.com> wrote:
> Hi;
> I am trying to script code that automatically sends a Web site visitor to an
> URL. Specifically, when they enter a value in a search box, I have that form
> sent to a script that writes an URL acceptable to Google, then I want to
> send the visitor off without him having to click another button. How do I do
> this?

Send back a webpage with a Refresh meta tag:

<html>
    <head>
    <meta http-equiv="Refresh" content="0; url=http://YOUR-URL-HERE/">
    </head>
</html>

Cheers,
Chris
-- 
http://blog.rebertia.com



More information about the Python-list mailing list