Insert record error
-
I want to insert a record in to the backend table from the insert form the issue is when we submit this form it shows 404 page not found error please help me to solve this error. I m at basic level in php if i made any mistake in syntax im sorry for that.
<!–****Insertion*****–>
[insert_php]
echo “done”;
if(isset($_POST[‘ins’])){
extract($_POST);$ins=mysql_query(“insert into BENCH values (null,’$name’,’$profile’,$experience,’$phone’,’$email’,’$immigration’,$marketingrate,’$relocation’,’$noticeperiod’,’$consultantemployer’,’$status’)”);
if($ins==1)
echo “Record Added Successfully”;
else
echo mysql_error();
}
[/insert_php]
<form method=”POST” action=””>
<label>NAME: </label>
<input type=”text” name=”name”></br>
<label>PROFILE: </label>
<input type=”text” name=”profile”></br>
<label>EXPERIENCE: </label>
<input type=”text” name=”experience”></br>
<label>PHONE: </label>
<input type=”text” name=”phone”></br>
<label>EMAIL: </label>
<input type=”text” name=”email”></br>
<label>IMMIGRATION: </label>
<input type=”text” name=”immigration”></br>
<label>MARKETINGRATE: </label>
<input type=”text” name=”marketingrate”></br>
<label>RELOCATION: </label>
<input type=”text” name=”relocation”></br>
<label>NOTICEPERIOD: </label>
<input type=”text” name=”noticeperiod”></br>
<label>CONSULTANTEMPLOYER: </label>
<input type=”text” name=”consultantemployer”></br>
<label>STATUS: </label>
<input type=”text” name=”status”></br>
<input type=”submit” name=”ins” value=”submit”></br>
</form>
<!–****Insertion*****–>
The topic ‘Insert record error’ is closed to new replies.