retrieve values from url
Posted: Thu Apr 08, 2010 4:34 am
i want to pass values from my form to a pop-up window and then retrieve those values in that pop-up window and display them, say like a preview of details entered in the form in a new pop-up window....i have retrieved the value, but it just doesn't seem to reach to the url of the pop-up window though it prints out the value...here is my code...
For the values
Code: Select all
$batch1 = $_POST['title'];
$batch2 = $_POST['link'];
$batch3 = $_POST['experience'];
$batch4 = $_POST['explanation'];
$batch5 = $_POST['comment'];
$batch6 = $_POST['ownerid'];
$batch7 = $_GET['category'];
$batch8 = $_POST['author'];
$batch9 = $_POST['num'];Code: Select all
echo "<p ><div style='padding-left:185px;'><input class='button' type=submit name=preview onClick="."window.open('http://alltherankings.com/staging/preview.php?param1=$batch1¶m2=$batch2¶m3=$batch3¶m4=$batch4¶m5=$batch5¶m6=$batch6¶m7=$batch7¶m8=$batch8¶m9=$batch9','previewwindow','width=400,height=200')" ." value='Preview'>
<input type=submit name=save class='button' value='Publish'></div></form></p>";