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
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>"; ?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.