Jump to content

retrieve values from url


Recommended Posts

:'(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&param2=$batch2&param3=$batch3&param4=$batch4&param5=$batch5&param6=$batch6&param7=$batch7&param8=$batch8&param9=$batch9','previewwindow','width=400,height=200')"  ." value='Preview'>
        <input type=submit name=save class='button' value='Publish'></div></form></p>";

Link to comment
https://forums.phpfreaks.com/topic/197976-retrieve-values-from-url/
Share on other sites

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 "&param2=$batch2&param3=$batch3&param4=$batch4&param5=$batch5&param6=$batch6&param7=$batch7&param8=$batch8&param9=$batch9','previewwindow','width=400,height=200')"  ." value='Preview'>
        <input type=submit name=save class='button' value='Publish'></div></form></p>"; ?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.