Tuesday, 13 August 2013

On click submit is not working in form

On click submit is not working in form

I got the answer for my previous question here but i am continuing it as
there is a small query about it
I am able to capture the product_id value through url. But now my
if(isset($_POST['submit'])) is not working at all. Here is my code
in allocation.php
<form name="form1" action="submit.php" method="post">
//form contents
<input type="submit" value="SUBMIT DATA" name="submit"
style="font-size:18px; font-weight:bold;" />
<form>
in submit.php
<?php
require_once 'connect.php';
if(isset($_POST['submit'])) {
// $_POST data
}
else {
print ("SUBMIT is not working");
}
so it always gives SUBMIT is not working , it is not entering into
if(isset($_POST['submit'])). where i am doing wrong... somebody plz
suggest

No comments:

Post a Comment