Using a function from process.inc.php in a form on another page -
i trying create form has (using table formatting now.
<form action="addcontent()" method="post" class="formleft"> <table> <tr> <td></td> <td><input type="hidden" id="id"/></td> </tr> <tr> <td>page:</td> <td><input type="text" id="page"/></td> </tr> <tr> <td>information:</td> <td><textarea id="info"></textarea></td> </tr> <tr> <td></td> <td><input type="submit" id="submit" value="add content"> </tr> </table> </form> how can use function called addcontent() within process.inc.php ? ideas?
the
actionshouldfilenamenot function nameaction="process.inc.php"
and if want call function have use
onsubmitin form tag calling function when submitting formonsubmit="addcontent()"
for including content of
process.inc.phpin other file use below codeinclude_once("path-to-file/process.inc.php");
Comments
Post a Comment