Forum Moderators: coopster
if (isset($_POST["submit"])) {
mysql_query($hdins);
header("Location: [localhost...]
}
elseif(!isset($_POST["submit"])){
return;
}
else{}
I thought of that already charlier but I've 15 to 20 users who will use the system all day so a time based system is kind of out the window.
This is what I got so far. If someone logs in they insert a record which is what I'm trying to prevent now. While the insert is working fine and it's not submiting the record twice. I've basically three forms pointing at the same page. A login, insert and a update. So what am I missing?
if (isset($_POST['login']))
{
// Do nothing
}
if ($_SESSION['addcall']==1){
// Do nothing
}
else{
$sql=mysql_query($hdins);
$_SESSION['addcall']=1;
}
if ($_SESSION['update']==1){
// Do nothing
}
else{
$sql=mysql_query($hdupdt);
$_SESSION['update']=1;
}