PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
if($save){
if($TheFile="form_data/$_POSTїsave].txt";
$Open = fopen($TheFile,"w");
if($Open){
fwrite($Open,"$editing\n");
fclose($Open);
$Worked=True;
}else{
$Worked=False;
}
return $Worked;
){
print("<TR><TD colspan=5><CENTER>file created/updated");
}else{
print("<TR><TD colspan=5><CENTER>Error occured during processing please go back and retry");}
}
the second if statement is not accepted?
I had a workin version but have lost it so need this one to work.
Have made the write to file a separate functon but its to do with the line $TheFile. Please help
thanks
Andy