Jump to content

[SOLVED] Order form


MrBillybob

Recommended Posts

U could give some more details. Im assuming u have an input and submit in a form. If yes then when hitting refresh, if used post then it will ask to resend the information again and with get it will just run the same url. One idea may be to redirect to the same page just to clear post or get data.

Link to comment
https://forums.phpfreaks.com/topic/65632-solved-order-form/#findComment-327763
Share on other sites

lol this won't work

change this

$doublecheck = "SELECT * FROM table WHERE name = "{$_POST['name']}";
if(mysql_num_rows($doublecheck) == 0){
// put your code to enter into the database here
}
}

 

to

$doublecheck = mysql_query("SELECT * FROM table WHERE name = "{$_POST['name']}");
if(mysql_num_rows($doublecheck) == 0){
// put your code to enter into the database here
}
}

Link to comment
https://forums.phpfreaks.com/topic/65632-solved-order-form/#findComment-327774
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.