Hello,
I am trying to create a form like this:
registration1.php
<form name="registration1" action="registration2.php<?php //$_SERVER['PHP_SELF'] ?>" method="POST">
<tr>
<td>First Name</td>
<td><input style="width: 500px;" type="text" name="fname" size="80px"><br><br></td>
</tr>
<tr>
<td>Last Name</td>
<td><input style="width: 500px;" type="text" name="lname" size="80px"><br><br></td>
</tr>
<tr>
<td>Email Address</td>
<td><input style="width: 500px;" type="text" name="email" size="80px"><br><br></td>
</tr>
<tr>
<td>Phone No</td>
<td><input style="width: 500px;" type="text" name="phone" size="80px"><br><br></td>
</tr>
<tr>
<td>Skype</td>
<td><input style="width: 500px;" type="text" name="skype" size="80px"><br><br></td>
</tr>
<td></td>
<td><input type="checkbox" name="term" value="">I have read and understand the <a href="#">Terms & Conditions</a>
</td>
</table>
<?php include('includes/setting.php'); ?>
<div class="buttons"><a class="button" data-type="register" onClick="window.location.href = '<?php SITEURL ?>registration2.php';">register</a></div><br><br>
<input type="submit" class="button" name="register" value="Simpan"> <!-- onClick="window.location.href = '<?php SITEURL ?>registration2.php';"/> -->
</form>
I already add registration2.php in action and I still wonder why after I click Simpan button why the page does not change to registration2.php
The url does only moves to: http://localhost/squprime/registration1.php?fname=&lname=&email=&phone=&skype=®ister=Simpan