Created
March 8, 2011 20:10
-
-
Save arschmitz/860928 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require($_SERVER['DOCUMENT_ROOT']."/includes/dbconnect.php"); | |
foreach($_POST as $name => $value){ | |
$$name = $value; | |
echo $name."=".$value; | |
} | |
$sql = "INSERT INTO text_service (cust, phone, first, carrier, last) VALUES ('$cust','$phone','$first','$carrier','$last')"; | |
$db->query($sql); | |
echo $sql; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
output:
first=dfgh
last=dfgh
phone=fgdh
cust=dfgh
ignore=Add
carrier=teleflip.com
INSERT INTO text_service (cust, phone, first, carrier, last) VALUES ('dfgh','fgdh','dfgh','teleflip.com','dfgh')