2 submit buttons in html for different urls ?

exxos

New member
Just have a simple HTML page where the user enters X & Y values, when clicks on SEND it posts data to a php script.

however, can I add a second button where I can pop up a preview window running a different php script ? I think this can be done in JS though how would I do this ? I presume I can use a button to call a JS function, then there must be a way to read the html form inputs and just pop up a new window using JS, the data does not have to be posted, can be posted via the URL.. I think this is possible though no idea how to put it all together.
 
Back
Top