i have gallery.php?gid=1 in gallery.php page and i have to submit data to save.php without using a form.
and i want to get the value of gid without using a button..
is that possible?
gallery.php
$gid=$_GET['gid'];
save.php
echo $gid..
header("location:save.php?gid=".$gid);
OR
use a anchor tag with href="save.php?gid=<?php echo $gid;?>"
href="save.php#anchor"#anchor != Query String.The members of $_GET array is got from query string. In a simple way, a query string is tha part after the ? character of the URL and formatted in this way:
param1=value1¶m2=value2&....
So you can pass any pair of key-value in to your PHP script by adding a query string to the end of this PHP file URL.
gallery.php?gid=1than you can access the value with$_GET['gid'].