robert_gsfame Posted July 30, 2009 Share Posted July 30, 2009 does anyone has a clue? i have my form like this <form name = 'form1' method='post' action='submit.php'> <input type = 'text' name='text1'> <input type = 'submit' name='button1'> <input type = 'button' name='button2' onclick=windows.open('preview.php',blablablablablabla) </form> $_POST['text1'] only pass the value when i click the button1, and it goes to submit.php what i want to ask is that how to pass the value inside the textbox to my preview.php once i click on button2? thanx in advance Link to comment https://forums.phpfreaks.com/topic/168093-solved-creating-preview/ Share on other sites More sharing options...
Philip Posted July 30, 2009 Share Posted July 30, 2009 Your javascript is not submitting the form but simply opening a new window. Link to comment https://forums.phpfreaks.com/topic/168093-solved-creating-preview/#findComment-886584 Share on other sites More sharing options...
priti Posted July 30, 2009 Share Posted July 30, 2009 sorry Link to comment https://forums.phpfreaks.com/topic/168093-solved-creating-preview/#findComment-886588 Share on other sites More sharing options...
robert_gsfame Posted July 30, 2009 Author Share Posted July 30, 2009 i know that, so how to open a pop up while getting value of the textbox in simple words, how to create 2 submit buttons that each has its own action Link to comment https://forums.phpfreaks.com/topic/168093-solved-creating-preview/#findComment-886597 Share on other sites More sharing options...
priti Posted August 11, 2009 Share Posted August 11, 2009 In javascript function document.form1.submit(); - > It will submit the form1 where which is your submit1 document.form2.submit() : for submit2 Link to comment https://forums.phpfreaks.com/topic/168093-solved-creating-preview/#findComment-895417 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.