My script goes like this:
<?php
//create variable names from order.php
$user=$_POST['Username'];
$pass=$_POST['password'];
$make=$_POST['Make'];
$model=$_POST['Model'];
$connection = odbc_connect('localhost','','');
$query = "SELECT * FROM User WHERE (Username LIKE '%$user%')";
if
(!$query)
{
echo "Your Username is invalid";
}
$queryexe = odbc_exec($connection, $query);
//create variables from query
$id = odbc_result($queryexe, 1);
$userverify = odbc_result($queryexe, 2);
$password = odbc_result($queryexe, 3);
$address = odbc_result($queryexe, 4);
$ccnum = odbc_result($queryexe, 5);
$cctype = odbc_result($queryexe, 6);
$ccdate = odbc_result($queryexe, 7);
$ccname = odbc_result($queryexe, 8);
//compare username & password to records
if ($pass==$password){
echo "<form method=\"post\" action=\"mailto:orders@bailz.zapto.org\">";
echo "<input type=\"hidden\" name=\"Make\" value=\"&make\"><br />";
echo "<input type=\"hidden\" name=\"Model\" value=\"$model\"><br />";
echo "<input type=\"hidden\" name=\"Username\" value=\"$user\"><br />";
echo "<font>Delivery Address: <input type=\"text\" name=\"Address\" value=\"$address\"><br />";
echo "<font>Credit Card Number: <input type=\"text\" name=\"CCNum\" value=\"$ccnum\"><br />";
echo "<input type=\"hidden\" name=\"CCType\" value=\"$cctype\"><br />";
echo "<input type=\"hidden\" name=\"CCDate\" value=\"$ccdate\"><br />";
echo "<input type=\"hidden\" name=\"CCName\" value=\"$ccname\"><br /><br />";
echo "<input type=\"submit\" value=\"Verify\">";
}
else{
echo "Your Password is invalid";
}
?>
The idea is that variables are passed through from one form to this script, where they are validated and then emailed to an address. However, when the script is run in a browser it displays nothing. No errors etc, just a big white page. There are no errors before the <?php either.
Whaddya think's up?
Cheers,
Bailz.