PHP has changed their superglobals, no longer can you just put a $ infront of the assigned name attribute. (You can change this in the php.ini file, but it's discouraged)
Instead use $_GET['name'] Or $_POST['name'] So for $manufacturer $_POST['manufacturer'] -----Original Message----- From: Seena Blace [mailto:[EMAIL PROTECTED] Sent: Monday, February 02, 2004 4:08 PM To: [EMAIL PROTECTED] Subject: PHP AND MYSQL Hi, Does any one develop any web pages with PHP,Apache,Win2k,Mysql ? If so,can please help me. When I 'm inserting data thru html FORM ,getting error Notice: Undefined variable: like this.Can some one please send some tips pl? Html code: <form action="insert.php" method="post"> Software id: <input type="text" name="softwareid"> Manufacturer: <input type="text" name="manufacturer"> Name: <input type="text" name="name"> Version: <input type="text" name="version"> <input type="Submit"> </form> <? PHP code <? $database="testdatabase"; mysql_connect("localhost"); @mysql_select_db($database) or die( "Unable to select database"); $query = "INSERT INTO software1 VALUES ('','$softwareid','$manufacturer','$name','$version')"; mysql_query($query); mysql_close(); ?> Let me know what is wrong pl. thx -seena --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]