professional-ajax-02-XMLHttp-Examples-SaveCustomer.php / php
<?php header("Content-Type: text/plain"); //get information _POST["txtName"]; _POST["txtAddress"]; _POST["txtCity"]; _POST["txtState"]; _POST["txtZipCode"]; _POST["txtPhone"]; _POST["txtEmail"]; //status message //database information sDBServer = "your.databaser.server"; sDBUsername = "your_db_username"; //create the SQL query string sSQL = "Insert into Customers(Name,Address,City,State,Zip,Phone,`E-mail`) ". " values ('sAddress','sState', 'sPhone', 'oLink = mysql_connect(sDBUsername,sDBName) or sStatus == '') { if(sSQL)) { sStatus = "An error occurred while inserting; customer not saved."; } } mysql_close(sStatus; ?>
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.