Don't mix the concepts:
The form is HTML, Javascript submits the form and PHP manipulates the content of the form on the server. There's no PHP form, unless it's generated by it.
Just do it yourself, it's fun. Depending on the level of the complexity, it is almost always the same. It begins with:
Code:<SCRIPT Language="JavaScript"> function TellJavaScripttoCallServerSideScript() { ... document.form.submit(); } </SCRIPT> <form name="form" action="GiveMeSomeHTMLResult.php" method="post" target="_self"> ... <INPUT TYPE="BUTTON" ONCLICK="TellJavaScripttoCallServerSideScript();" </form>




Reply With Quote