PHP-Post Data
<?php if(isset($_POST['submit'])) { $name = $_POST['name']; $email=$_POST['email']; $phone=$_POST['phone']; $comment=$_POST['comment']; mysql_connect("localhost","root",""); mysql_select_db("register_form"); $data=mysql_query("insert into quick_contact values('','$name','$email','$phone','$comment')"); if($data) { echo "<script>alert('Your post jobs has been submitted successfully')</script>"; /* echo "<script>location='files/post_jobs.php'</script>"; */ } else { echo"<script>alert('your post not submited')</script>"; echo mysql_error(); } } ?> <!DOCTYPE html> <html> <head> <title> Working with web forms </title> <style type="text/css"> table { font-family:verdana; } td