I have a form with a text area and 2 buttons, i need one of them to submit to the same page its on and the other to submit to another php file. Both buttons need to allow the text areas to be referenced by post. How can i do this.
For Example:
<form action="" method="post">
<textarea></textarea>
<input type='submit' value='Preview'> //I want this to submit to the same page
<input type='submit' value='Save'> // I want this to submit to save.php
</form>
Note: All my html is generated by php through different scripts that change depending on users previous actions.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…