Saving Full URL
Posted: Fri Jan 16, 2009 11:04 am
My problem is that I need to save a full URL into a database, however, the full address doesn't save.
/?pg=6&function=View&album=Products
Only saves in the database as /?pg=6
It displays it correctly as the full URL when I print it on the page.
Here's the link I provide for them.
And this is where it's processed.
Why does it stop at the "&"?
/?pg=6&function=View&album=Products
Only saves in the database as /?pg=6
It displays it correctly as the full URL when I print it on the page.
Here's the link I provide for them.
Code: Select all
$pageURL = $_SERVER["REQUEST_URI"];
<a href=\"?pg=49&add=$pageURL\">Add this page to Pages I Like</a>Code: Select all
$add = $_GET['add'];
$query = "insert into favorites values('', '$add')";
$result = mysql_query($query);