Jump to content

asianflayva

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

asianflayva's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. [!--quoteo(post=370983:date=May 3 2006, 01:10 PM:name=kenrbnsn)--][div class=\'quotetop\']QUOTE(kenrbnsn @ May 3 2006, 01:10 PM) [snapback]370983[/snapback][/div][div class=\'quotemain\'][!--quotec--] On this line: [code]<OPTION value="">Please select an Operator Group</option>[/code] you didn't escape the quotes: [code]<OPTION value=\"\">Please select an Operator Group</option>[/code] Ken [/quote] Ken, I had one other issue besides the one I posted, but your response helped solved the specific error on the specific line problem that I was having. Thanks mucho. Jen
  2. I need to add a drop down menu to my existing PHP. I'm new to this language and thought what I had written would work, but I keep getting an error with what I've got. Can anyone take a ganders at my code and let me know what I'm doing wrong? (It's the "opgroup" section.) Thanks. <? $form_block = " <FORM METHOD=\"POST\" ACTION=\"$_SERVER[PHP_SELF]\"> <P><strong>Requester Name & Department:</strong><br><INPUT type=\"text\" NAME=\"reqname\" size=40></P> <P><strong>Requester E-Mail:</strong><br><INPUT type=\"text\" NAME=\"reqemail\" size=40></P> <P><strong>Requester Phone Number:</strong><br><INPUT type=\"text\" NAME=\"reqphone\" size=40></P> <P><strong>Person Operator Code Requested For: (First, Middle & Last)</strong><br> <INPUT type=\"text\" NAME=\"opcodereq\" size=40></P> <P><strong>Requested Operator Code: (XXX)</strong><br><input type=\"text\" NAME=\"opcode\" size=20></P> <P><SELECT NAME=\"opgroup\" size=1> <OPTION value="">Please select an Operator Group</option> <OPTION value=\"IT\">IT Staff</option> <OPTION value=\"REG\">Registration</option> <OPTION value=\"BLGD\">Registration/Billing-Dental/Eye Clerical Staff</option> <OPTION value=\"BLG\">Registration/Billing/Prenatal/HSS</option> <OPTION value=\"REC\">Reception/Medical Records/Social Workers</option> <OPTION value=\"MGMT\">Management Staff</option> <OPTION value=\"DATA\">Planning/Development/Fiscal</option> <OPTION value=\"MED\">Providers/Nurses/Health Educators/Asst/Recepts</option> <OPTION value=\"MIS\">MIS</option> </SELECT></P> <P><strong>Questions or Comments:</strong><br> <TEXTAREA NAME=\"message\" rows=4 cols=40></textarea></P> <INPUT type=\"hidden\" name=\"op\" value=\"ds\"> <P><INPUT type=\"submit\" NAME=\"submit\" VALUE=\"Send Request\"></P> </FORM>"; if ($_POST[op] != "ds") { // they need to see the form echo "$form_block"; } else if ($_POST[op] == "ds") { // check value of $_POST[reqname] if ($_POST[reqname] == "") { $reqname_err = "<font color=red><b>Please enter your Name and Department!</b></font><br>"; $send = "no"; } // check value of $_POST[reqemail] if ($_POST[reqemail] == "") { $reqemail_err = "<font color=red><b>Please enter your Email Address!</b></font><br>"; $send = "no"; } // check value of $_POST[reqphone] if ($_POST[reqphone] == "") { $reqphone_err = "<font color=red><b>Please enter your Phone Number!</b></font><br>"; $send = "no"; } // check value of $_POST[opcodereq] if ($_POST[opcodereq] == "") { $opcodereq_err = "<font color=red><b>Please enter the name of the requested user! (First, Middle and Last.)</b></font><br>"; $send = "no"; } // check value of $_POST[opcode] if ($_POST[opcode] == "") { $opcode_err = "<font color=red><b>Please enter a requested operator code! (XXX)</b></font><br>"; $send = "no"; } // check value of $_POST[opgroup] if ($_POST[opgroup] == "") { $opgroup_err = "<font color=red><b>Please identify the operator group to which the employee needs access!</b></font><br>"; $send = "no"; } if ($send != "no") { // it's ok to send, so build the email $msg = "E-MAIL SENT FROM LA MAQUINA\n"; $msg .= "Requester Name and Department: $_POST[reqname]\n"; $msg .= "Requester Email: $_POST[reqemail]\n"; $msg .= "Requester Phone: $_POST[reqphone]\n"; $msg .= "Requested User Name: $_POST[opcodereq]\n"; $msg .= "Requested Operator Code: $_POST[opcode]\n"; $msg .= "Operator Code Group: $_POST[opgroup]\n"; $msg .= "Message: $_POST[message]\n\n"; $to = "jdavenport@laclinica.org"; $subject = "Operator Code Request"; //send the mail mail($to, $subject); //display confirmation to user echo "<P>Your request for an Operator Code has been sent!</P>"; } else if ($send == "no") { //print error messages echo "$reqname_err"; echo "$reqemail_err"; echo "$reqphone_err"; echo "$opcodereq_err"; echo "$opcode_err"; echo "$opgroup_err"; echo "$form_block"; } } ?>
×
×
  • 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.