I am a complete PHP newbie and I have a specific question that might seem dumb. However, I cannot seem to locate an answer (likely because I don’t know the best search terms). I am building a sendmail script and I want to add text in front of the items I have pulled from the DB.
IE:
First Name:
Middle Name:
Last Name:
$message = $_POST['fname']."\n".$_POST['mname']."\n".$_POST['lname']."\n".$_POST['role']."\n".$_POST['facility']."\n".$_POST['specialty']."\n".$_POST['level']."\n".$_POST['email'];
First of all, go and read some basic PHP book. Don’t consider that watching video lesson or reading few articles will be enough.
Second of all, understand what you are trying to do. $_POST is a global array, containing all data, sent to server by client via POST method.
I don’t completely understand, what you are trying to achieve, but try this one: