Cant pass a URL as a URL param to php from javascript without www

juanito1290

New Member
I am using javascript to make a jquery call to a php script. When calling the php script it is passing url paramaters and one of the parameters is a url. When I type beerportfolio.com/blog/?p=379 I get this error:\[code\]GET http://www.beerportfolio.com/addBeerBlog.php?u=3&b=8NX7Sy&t=Beer%20Portfolio&l=http://beerportfolio.com/blog/?p=379 403 (Forbidden) \[/code\]but if I instead pass it with the www like this:GET http://www.beerportfolio.com/addBee...io&l=http://www.beerportfolio.com/blog/?p=379it works perfectly. Any ideas what the heck is going on here? I need to be able to take user input if they do not include the www.
 
Top