Thank you very much to all. Jason Burfield <[EMAIL PROTECTED]> wrote:This is probably something for the php list, however, how is REGISTER_GLOBALS set on your server? On or off? It is off by default on newer version of PHP. (has been for a while.)
If it is off you need to grab the vars from post like: $softwareid = $_POST["softwareid"]; $manufacturer = $_POST["manufacture"]; etc, etc... Plus...are you able to connect to the db server? Use: mysql_connectd("$host", "$username", "$password"); -- Jason On Mon, 2004-02-02 at 16:07, Seena Blace wrote: > 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: > > > Software id: [input] > Manufacturer: [input] > Name: [input] > Version: [input] > [input] > > > > 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! --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it!