mrcoda Posted May 6, 2010 Share Posted May 6, 2010 I'm connecting but the data from the form isnt being entered into the fields. HELP , i NEED SOMEBODY, <?php $name=$_POST["name"]; $company=$_POST["company"]; $email=$_POST["email"]; mysql_connect ("localhost", "rbcreati_richard", "burb1971") or die ('Error: ' . mysql_error()); mysql_select_db ("rbcreati_clients"); $query = "INSERT INTO quickcontacts VALUES ('','$name','$company','$email')"; mysql_query($query); ?> <?xml version="1.0" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="description" content="RB CREATIONS. WEB DESIGN, GRAPHIC DESIGN , DIGITAL PHOTO EDITING, SEO. Search engine optimisation explained in simple terms for business people, web design explained in simple terms for business people. Websites Built to W3C Standards XHTML STRICT, Fast loading graphics, Bespoke designs. " /> <meta name="keywords" content="web design, design web, graphic design, digital photo, creative design, flash, photo editing, flash, seo, xhtml " /> <link href="allstyles.css" rel="stylesheet" type="text/css" /> <title>WWW.RBCREATIONS.CO.UK---------web design----graphic design----digital photo optimising and editing-----search engine optimisation SEO----</title> </head> <body> <div>ggdg <form action="update_quickcontacts.php" method="post" id="quickcontact" > <fieldset> contact name<br /><input id="name" type="text" size="25" maxlength="30" /><br /><br /> company<br /><input id="company" type="text" size="25" maxlength="50" /><br /><br /> email<br /><input id="email" type="text" size="25" maxlength="50" /><br /><br /> <input type="submit" value="up date database" /> </fieldset> </form> </div> </body> </html> Link to comment https://forums.phpfreaks.com/topic/200939-newbee-no-data-showing-up-in-mysql-only-empty-extra-rows/ Share on other sites More sharing options...
fenway Posted May 6, 2010 Share Posted May 6, 2010 Don't double-post. Link to comment https://forums.phpfreaks.com/topic/200939-newbee-no-data-showing-up-in-mysql-only-empty-extra-rows/#findComment-1054372 Share on other sites More sharing options...
Recommended Posts