URL problem
Posted: Tue Oct 21, 2008 10:03 am
~pickle | Please use [ code=html ], [ code=php ], etc tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:
Posting Code in the Forums to learn how to do it too.
Hi i'm new to the php world
i'd like to know is it possible to submit data from a html form to a url then open it in a new window
here is an example of the code i've got so far but it keeps opening in the same window
any ideas??
any suggestions welcome
Thanks
James
~pickle | Please use [ code=html ], [ code=php ], etc tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:
Posting Code in the Forums to learn how to do it too.
Hi i'm new to the php world
i'd like to know is it possible to submit data from a html form to a url then open it in a new window
here is an example of the code i've got so far but it keeps opening in the same window
Code: Select all
<form method="PUT" target="_blank">
<input name="postcode" type="text" onclick="clickclear(this, 'Post Code')" onblur="clickrecall(this,'Post Code')" value="Post Code" size="10" maxlength="10" />
<input type="hidden" name="comppost" value="B66QE" />
<input name="submit" type="submit" onclick='window.location = "http://maps.google.co.uk/maps?saddr=" + postcode.value + "&daddr=" + comppost.value + ""; return(false);' value="Get Directions" />
</form>any suggestions welcome
Thanks
James
~pickle | Please use [ code=html ], [ code=php ], etc tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: