Question

This is a form with php action

<?php
if(isset($_POST['submit'])) 
{ 
  die('working');

}
?>
<form id="msform" action="<?php echo $_SERVER['PHP_SELF'];?>" method="post">
<fieldset style="opacity: 1; -webkit-transform: scale(1); display: block;">
    <input type="button" name="next" class="next action-button" value="Next"/>
</fieldset>
<fieldset style="display: none; left: 50%; opacity: 0;">
    <input type="button" name="previous" class="previous action-button" value="Previous"/>
    <input type="button" name="next" class="next action-button" value="Next"/>
</fieldset>
<fieldset>
    <input type="submit" name="submit" class="submit action-button" value="Submit"/>
</fieldset>
</form>

The problem is that it when I click submit button nothing happens at all.

Thanks advance.

Was it helpful?

Solution

Try leaving action empty.

<form id="msform" action="" method="post">

OTHER TIPS

This form will die when you click submit as it is currently working as expected.

The input for NEXT is not set to do anything.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top