I am having problems passing html form variable values to another php script that takes these values to use in SQL scripts. Could somebody help me out ?
Here's some code snippets:
Script with form frontend
<input name="forename" type="text" id="forename" size="30">
<FORM ACTION="Booking.php?forename?>" METHOD=post>
<input name="submit" type="submit" id="submit2" value="Proceed">
</form>
script that executes SQL statement
$forename = forename; //variable passed from other form
//SQL statement
"insert into tblcustomers (customer_forename, customer_surname, customer_telephone, customer_email)
values ('".$forename."', '".$surname."', '".$telephone."', '".$email."')"