Is there any way to convert $_GET variable into $_POST variables? for example if there is a page "page1.php?v=123", how can i pass the value of v to another page "page2.php" automatically ? One way to do this (I think) is via hidden form variable and submit by javascript by onload() method. Is there any other way?
Do you wish to open the new [second] page? If so, use the JavaScript Open function triggered by the callback [onload()] to open the new page with the variable. It was not clear to me what the second page was doing so if you could explain maybe I can provide a clearer option. Q...
Using CURL PHP Tutorial to send POST to another page is the easiest way, but you have to have CURL installed. It's not hard.
you could save the variables in a session. So in page2 you would just check to see if the session varibles exists and retrieve the values.
In your case: <?php $get = $_GET['v']; // gets the value of the 'v' and assign it to $get header("location: page" . $get . ".php"); // redirects to page(value of $get).php die(); // ends the script in case something goes wrong and it can't redirect ?> PHP: I wrote this on-the-fly so it may not work and may need some small edits.