HTML Submit Button does not execute PHP code upon press -


i attempting run piece of code via php create table in values can inputted table , updated via ajax call. latter part not problem.

however, despite similar style of program working in document, submit button doesn't @ all. attempted add hidden field button, nothing registered. below code on pages:

original button, linked on include , posting main page:

<form action="main.php" method="post">  <input type="hidden" name="hidden" value="13timesasecond"/>  <input type="button" id="clicky" value="create" name="create"/> </form> 

main homepage, validations' sake.

    if (isset($_post['hidden'])) {     include_once $includepath."module.inc.php";     echo $_post['hidden']; } else {     echo "the button broke :("; } 

the actual module:

echo "<div class=dataset>     <p><u>new dataset</u></p>     <form>         <input type=radio name=rating value=red> red         <input type=radio name=rating value=amber> amber         <input type=radio name=rating value=green> green     </form>     <table border=1 align=left>             <tr>                 <td>field 1</td>                 <td>field 2</td>                 <td>field 3</td>                 <td>field 4</td>             </tr>             <tr>                 <td><input type=text/></td>                 <td><input type=text/></td>                 <td><input type=text/></td>                 <td><input type=text/></td>             </tr>         </table>     </div>"; 

the other stuff not done, , issue button not causing echo on click despite other pages using same thing in website.

change type of input button submit:

<form action="main.php" method="post">  <input type="submit" id="clicky" value="create" name="create"/> </form> 

Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -