Hello everyone,
I need some help with this. The following script and form does this. There is a text field in which when the user types spacific keyword predefined in the .php script he is taken to the appropriate link.
My problem is this. When the link is something like
[url][url]http://mysite.com/page1.html,[url]http://something.com/mydirectory/page2.html,http://paypal.com
it works ok.
When the link is a paypal subscription link ie
[url]https://www.paypal.com/subscriptions/business=myemail%40mysite.com&item_name=subscription+no+1&item_number=S01&no_shipping=1&no_note=1¤cy_code=USD&a3=45.00&p3=1&t3=Y&src=1&sra=1
it doesn’t work. It doesn’t take me to the predefined link.
Does anyone know why?
Here is the code.
Form:
<form method=post>
Keyword: <br>
<input type=text name=keyword>
<input type=hidden name=sub value=1>
<input type=submit value=Go!>
Here is the php
<?php
if($sub==1)
{
if($keyword==”google”)
{
echo(“<script>window.location=’http://google.com’;</script>”);
}
else if($keyword==”my site”)
{
echo(“<script>window.location=’
}
else if($keyword==”paypal subscription 1″)
{
echo(“<script>window.location=
}
else
{
echo(“That is not a valid keyword.”);
}
}
?>