Hiya
I have an order form and once submitted it goes straight to the payment form. I have 2 databases one order and the other payment. So in the order form i need to pass the id to the payment form to tie them together.
Heres my code... can anyone help?
Cheers xx
[PHP]
if ($submit == "Next")
{
$saved = mysql("db69117798","insert into info values (0, '$name', '$address', '$city', '$county', '$postcode', '$country', '$email_address', '$tel', '$fax', '$pet_name', '$pet_breed', '$pet_sex', '$pet_steps', '$pet_weight', '$pet_legs', '$pet_frontlegs', '$pet_vet', '$pet_cause', '$pet_arise', '$pet_comments', '$pet_aweight', '$pet_bshoulder', '$pet_ctail', '$pet_dchest', '$pet_echest', '$pet_ffrontchest')");
if ($saved)
$infos = mysql ("db69117798", "select * from info");
while ($info = mysql_fetch_array($infos))
{
echo "<script type='text/javascript'>
<!--
window.location = 'payment.php?infoid=$info[id]'
//-->
</script>";
exit;
}
}
else
{
echo mysql_error() ;
}
}
[/PHP]