devilincarnated Posted April 8, 2010 Share Posted April 8, 2010 :'(lost my brains dudes.... 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: $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']; For the preview button echo "<p ><div style='padding-left:185px;'><input class='button' type=submit name=preview onClick="."window.open('http://xxx.com/yyy/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>"; Quote Link to comment Share on other sites More sharing options...
devilincarnated Posted April 8, 2010 Author Share Posted April 8, 2010 i tried this still no luck! <?php echo "<p ><div style='padding-left:185px;'><input class='button' type=submit name=preview onClick=window.open('http://alltherankings.com/staging/preview.php?param1="; ?><?php echo $batch1; ?><?php "¶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>"; ?> Quote Link to comment Share on other sites More sharing options...
Matthias_ Posted April 12, 2010 Share Posted April 12, 2010 If you have values in an URL, you need to use $_GET to retrieve the values. $_POST isn't in the URL. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.