phppaper Posted July 5, 2008 Share Posted July 5, 2008 Hello, In HTMl form, Instead of posting the data to same same window, is it possible to post it to a new windows?? What I mean is after pressing the submit button, a new window open and process the data. Thanks Link to comment https://forums.phpfreaks.com/topic/113297-html-form-post-to-a-new-page/ Share on other sites More sharing options...
PC Nerd Posted July 5, 2008 Share Posted July 5, 2008 JavaScript document.getElementById("FORM_ID").submit = function { .... stuff to proccess data here eg: window.open("location", "name", "parameters"); } you shoudl be able to find a good tutorial on this. another thign you might want to look at is AJAX to submit the data - and then relocate? http://www.dreamincode.net/forums/showtopic48530.htm -- for an article using this method. gdlk Link to comment https://forums.phpfreaks.com/topic/113297-html-form-post-to-a-new-page/#findComment-582098 Share on other sites More sharing options...
phppaper Posted July 5, 2008 Author Share Posted July 5, 2008 hey thanks, but I am very bad in Javascript, is it like this?? document.getElementById("FORM_ID").submit = function { <input type="text" name="atext" /> <INPUT type="submit" value="submit"/> } Link to comment https://forums.phpfreaks.com/topic/113297-html-form-post-to-a-new-page/#findComment-582101 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.