Jump to content


Photo

Popup Window With URL From Text Box


  • Please log in to reply
No replies to this topic

#1 glenelkins

glenelkins
  • Members
  • PipPipPip
  • Advanced Member
  • 760 posts
  • LocationBridlington - East Riding of Yorkshire - United Kingdom

Posted 16 June 2006 - 12:57 PM

Hi

I want to take the value from a text box in the same form as a button called "Check" it opens a window with the url from a text box "giftlink" . I set the input type as "button" not submit as i dont want to submit the form yet. The window pops up fine, but i cant figure out how to take the value from the text box without submitting the form and using $_POST, any ideas??

The code for the button so far (the form is called "wantedgifts"):

<input type="button" name="checkbutton" value="Check" class="submit" onclick="window.open('document.wantedgifts.giftlink.value', 'newWin','width=800,height=600');"></td>

http://thewebsolutionprovider.com - A Solution For Everything Web!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users