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
action
shouldfilename
not function nameaction="process.inc.php"
and if want call function have use
onsubmit
in form tag calling function when submitting formonsubmit="addcontent()"
for including content of
process.inc.php
in other file use below codeinclude_once("path-to-file/process.inc.php");
Comments
Post a Comment