i try to get information in another page which works fine, the only facing problem is that i can't insert in database the information i get, for example:
This is the link i use which works fine.
index.php
<a href="http://example.com/q.php?url= '. $row['url'] .'&title='. $row['title'] .'" target="_blank">Edit</a>
q.php
$ip_address = $_SERVER['REMOTE_ADDR']; // This is working fine.
$title = $_GET['title'];
mysql_query("insert into test_insert (title,ip) values('$title','$ip_address')")
or die(mysql_error());
$title = $_GET['title']; // Not working
// If i delete this row above and replace with below it works.
$title = 'test'; // This is working and puts (test) in row title
I can't understand why i can show the information in q.php with:
<?php echo $_GET['title']; ?>
And can't insert it in database, what is wrong with this ?
Any help is welcome.
Thanks in advance.