i have created a simple php program which includes textbox and if user input something and hit the submit button...
the data will be added to the MySql database..
Simple as that.........
here is my code :
<html>
<head>
<title>PHP Test</title>
</head>
<form method="post" action="input.php">
Name: <input type="text" name="name" size="20">
<input type="submit" name="submit" value="Sent">
</form>
<body>
=$_POST[= $_POST[= "INSERT INTO empname
(empName)
VALUES
('$Fname')"= mysql_query($order);
</body>
</html>
and i have Mysql datatable with 2 columns
id will automatically increment
name will be added from the textbox
but when i execute this
Notice: Undefined index: name in C:\xampp\htdocs\newEmptyPHP1.php on line 18
Input data is succeed
this notification and
after i input something and hit submit, it'll show
Object not found!
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
If you think this is a server error, please contact the webmaster.
Error 404
localhost
Apache/2.4.7 (Win32) OpenSSL/1.0.1e PHP/5.5.6....
please help me to solve this case.............