Jump to content

LaC0saNostra

Members
  • Posts

    24
  • Joined

  • Last visited

Everything posted by LaC0saNostra

  1. Hello everybody. I have been trying to validate a page I have been working on and keep getting these two errors: 1. Message in line 73 at character 31: The "onchange" scripting attribute was used but a default scripting language has not been defined (note that HTML Validator would not see this declaration if it is sent as an HTTP header by a web server). HTML 4.01 and XHTML (but not HTML5) require this. However, for all practical purposes, leaving it out is unlikely to cause problems unless the default "text/javascript" is incorrect. If you still want to define a default scripting language, then include this in the "head" section of the document to specify "text/javascript" as the default scripting language: <meta http-equiv="Content-Script-Type" content="text/javascript" />. If you're using HTML Validator's integrated editor, then this can be added from the 'Tags' menu or from the HTML Inserter. Because this issue is unlikely to cause problems, consider ignoring or disabling this message. Visit http://www.w3.org/TR/html401/interact/scripts.html#h-18.2.2.1 for more information. This message is displayed only once. 2. Error in line 86 at character 10: When the "scoped" attribute is not used, the "style" element should not be where flow control is expected (for example, not in the "body" section). Should this "style" element be in the "head" section or should the "scoped" attribute be used? My code is as follows: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content ="text/html; charset=utf-8"/><title>TrackerPlus Homepage</title><link href="css/style.css" rel="stylesheet" type="text/css" /></head><body><div id="wrapper"> <div id="header"> <div class="top_banner"> <h1>TrackerPlus</h1> <p>Employee Database Tracking</p> </div> </div> <div id="page_content"> <div class="navigation"> <ul> <li><a href="http://cdlwebsysdev.esc-atsystems.net/eschubauer/Template/index.html">Home</a></li> <li><a href="http://cdlwebsysdev.esc-atsystems.net/eschubauer/Template/roster.html">Roster</a></li> <li><a href="http://cdlwebsysdev.esc-atsystems.net/eschubauer/Template/find.html">Find</a></li> <li><a href="http://cdlwebsysdev.esc-atsystems.net/eschubauer/Template/reports.html">Reports</a></li> <li><a href="http://cdlwebsysdev.esc-atsystems.net/eschubauer/Template/timecard.html">Timecard</a></li> <li><a href="http://cdlwebsysdev.esc-atsystems.net/eschubauer/Template/schedule.html">Schedule</a></li> <li><a href="http://cdlwebsysdev.esc-atsystems.net/eschubauer/Template/my_info.html">My Info</a></li> <li><a href="http://cdlwebsysdev.esc-atsystems.net/eschubauer/Template/contact_us.html">Contact Us</a></li> </ul> </div> <div class="left_side_bar"> <div class="col_1"> <h1>External Links</h1> <div class="box"> <ul> <li><a href="http://www.kaleidahealth.org/">Kaleida Health</a></li> <li><a href="http://www.chsbuffalo.org/">Catholic Health</a></li> <li><a href="https://securews.bcbswny.com/web/content/WNYmember/home.html?redirectToConstituent=true/">Blue Cross Blue Shield</a></li> <li><a href="https://www.roswellpark.org/">Roswell Park</a></li> <li><a href="http://sodexousa.com/usen/default.aspx">Sodexo</a></li> </ul> </div> </div> <div class="col_1"> <h1>Tip of the Day</h1> <div class="box"> <p>Enter Block content here...</p> <br /> <p>The <a href="http://www.kaleidahealth.org/">Find</a> link is best used to locate employees by either name or badge number. It is a great tool to locate an individual looking to pick up a shift from another Kaleida employed facility.</p> </div> </div> </div> <div class="right_section"> <div class="common_content"> <h2>Timecard</h2> <hr /> <p>Please use this timecard for information on all daily clock ins/outs.</p> <br /> <form action="http://cdlwebsysdev.esc-atsystems.net/eschubauer/Template/timecard.html" method="post"> <select name="URL" onchange="window.location.href=this.form.URL.options[this.form.URL.selectedIndex].value"> <option value="">Select a pay period</option> <option value="http://cdlwebsysdev.esc-atsystems.net/eschubauer/Template/previous_timecard.html"> Previous Pay Period</option> <option value="http://cdlwebsysdev.esc-atsystems.net/eschubauer/Template/timecard.html"> Current Pay Period</option> <option value="http://cdlwebsysdev.esc-atsystems.net/eschubauer/Template/next_timecard.html"> Next Pay Period</option> </select> <input type="submit" value="Send" /><input type="reset" value="Reset" /></form> <style type="text/css">table.tableizer-table {border: 1px solid #CCC; font-family: Arial, Helvetica, "sans-seriffont-size: 12px";} .tableizer-table td {padding: 4px;margin: 3px;border: 1px solid #ccc;}.tableizer-table th {background-color: #104E8B; color: #FFF;font-weight: bold;}</style><table class="tableizer-table"><tr class="tableizer-firstrow"><th>Date</th><th>Pay Code</th><th>Amount</th><th>In</th><th>Transfer</th><th>Out</th><th>Shift</th><th>Daily</th><th>Cumulative</th></tr> <tr><td>Sun 4/20/2014</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr> <tr><td>Mon 4/21/2014</td><td> </td><td> </td><td>7:00PM</td><td> </td><td>8:01AM</td><td>12.5</td><td>12.5</td><td>12.5</td></tr> <tr><td>Tues 4/22/2014</td><td>PTO-3</td><td>12.5</td><td> </td><td> </td><td> </td><td>12.5</td><td>12.5</td><td>25.0</td></tr> <tr><td>Wed 4/23/2014</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr> <tr><td>Thurs 4/24/2014</td><td>Request-Off</td><td>0.0</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr> <tr><td>Fri 4/25/2014</td><td> </td><td> </td><td>6:59PM</td><td> </td><td>8:24AM</td><td>12.5</td><td>13.0</td><td>38.0</td></tr> <tr><td>Sat 4/26/2014</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr> <tr><td>Sun4/27/2014</td><td>Request-Off</td><td>0.0</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr> <tr><td>Mon 4/28/2014</td><td>PTU-9</td><td>12.5</td><td> </td><td> </td><td> </td><td>12.5</td><td>12.5</td><td>50.5</td></tr> <tr><td>Tues 4/29/2014</td><td>Request-Off</td><td>0.0</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr> <tr><td>Wed 4/30/2014</td><td> </td><td> </td><td>7:00PM</td><td>//MICU</td><td>8:00AM</td><td>12.5</td><td>12.5</td><td>63.0</td></tr> <tr><td>Thurs 5/1/2014</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr> <tr><td>Fri 5/2/2014</td><td> </td><td> </td><td>6:59PM</td><td> </td><td>8:03AM</td><td>12.5</td><td>12.5</td><td>75.5</td></tr> <tr><td>Sat 5/3/2014</td><td>Request-Off</td><td>0.0</td><td> </td><td> </td><td> </td><td> </td><td> </td><td></td></tr></table> </div> </div> <div class="clear"></div> </div></div></body></html> The CSS attachment for the entire file is loaded. The internal CSS is bolded. How do I get this code to validate with my internal CSS? What did I do wrong? style.css
  2. Here is the CSS: body { background-color: #FDF8E5; color: #191970; font-family: Arial, Verdana, sans-serif; } h1 { background-image: url(fire_and_blood.jpg); color: #FCFFFE; line-height: 250%; font-family: Georgia, "Times New Roman", serif; } h2 { color: #FCFCFC; line-height: 500%; background-image: url(winter_is_coming.jpg); } p { color: #0E0402; background-color: #E9C684; font-size: 125%; font-weight: bold; line-height: 125%; font-family: Georgia, "Times New Roman", serif; text-align: center; } p2 { font-size: 1.0em; font-weight: bold; } blockquote { color: #FCFFFE; background-color: #1EA659; line-height: 200%; font-family: Georgia, "Times New Roman", serif; } table { font-weight: bold; } cite { font-weight: bold; } form { font-weight: bold; }
  3. Hey guys. I am trying to figure out where the form box for my e-mail portion is. As you can see in my code I have the "E:mail" text in a very random spot. The box that follows. Where is this? I am trying to allign it and make it look much more nicer: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content ="text/html; charset=utf-8"/> <title>TrackerPlus Homepage</title> <link href="css/style.css" rel="stylesheet" type="text/css" /> <script type="text/javascript"> <!-- <! [CDATA[ function validateForm() { if (document.forms[0].CustName.value == "") { alert ("A name must be entered."); return false; } // end function if (document.forms[0].CustAddress.value == "") { alert ("An address must be entered."); return false; } // end function if (document.forms[0].CustCity.value == "") { alert ("A city must be entered."); return false; } // end function if (document.forms[0].CustState.value == "") { alert ("A state must be entered."); return false; } // end function if (document.forms[0].CustZipCode.value == "") { alert ("A zip code must be entered."); return false; } // end function if (document.forms[0].CustCountry.value == "") { alert ("A country code must be entered."); return false; } // end function if (document.forms[0].CustComment.value == "") { alert ("Please enter some sort of feedback for us."); return false; } // end function } // ]]> --> </script> </head> <body> <div id="wrapper"> <div id="header"> <div class="top_banner"> <h1>TrackerPlus</h1> <p>Employee Database Tracking</p> </div> </div> <div id="page_content"> <div class="navigation"> <ul> <li><a href="#">Home</a></li> <li><a href="#">Roster</a></li> <li><a href="#">Find</a></li> <li><a href="#">Reports</a></li> <li><a href="#">Timecard</a></li> <li><a href="#">Schedule</a></li> <li><a href="#">My Info</a></li> <li><a href="http://cdlwebsysdev.esc-atsystems.net/eschubauer/Template/contact_us.html">Contact Us</a></li> </ul> </div> <div class="left_side_bar"> <div class="col_1"> <h1>External Links</h1> <div class="box"> <ul> <li><a href="http://www.kaleidahealth.org/">Kaleida Health</a></li> <li><a href="http://www.chsbuffalo.org/">Catholic Health</a></li> <li><a href="https://securews.bcbswny.com/web/content/WNYmember/home.html?redirectToConstituent=true/">Blue Cross Blue Shield</a></li> <li><a href="https://www.roswellpark.org/">Roswell Park</a></li> <li><a href="http://sodexousa.com/usen/default.aspx">Sodexo</a></li> </ul> </div> </div> <div class="col_1"> <h1>Tip of the Day</h1> <div class="box"> <p>Enter Block content here...</p> <br /> <p>The <a href="http://www.kaleidahealth.org/">Find</a> link is best used to locate employees by either name or badge number. It is a great tool to locate an individual looking to pick up a shift from another Kaleida employed facility.</p> </div> </div> </div> <div class="right_section"> <div class="common_content"> <h2>Contact Us</h2> <hr /> <p>In order to maintain the best possible version of TrackerPlus it is necessary to receive feedback from the users involved with this elaborate program. We appreciate any questions, concerns or inquires to allow us to make your experience better every update. Please take the time to fill out this form and give us any additional feedback you may have for us.</p><br /> <form action="http://cdlwebsysdev.esc-atsystems.net/wsd/form-to-email.php" method="post" onsubmit="return validateForm();"> E-mail: <input type="hidden" name="ToAddress" value="LaC0saNostra11@gmail.com" /> <input type="hidden" name="CCAddress" value="" /> <input type="hidden" name="Subject" value="TrackerPlus Contact Us" /> <input type="text" name="FromAddress" /> <table border="0" width="75%" align="left"> <tr> <td align="right" width="10%">Name: </td> <td><input type="text" name="CustName" id="CustName" size="30" /> </td> </tr> <tr> <td align="right">Address: </td> <td><input type="text" name="CustAddress" id="CustAddress" /> </td> </tr> <tr> <td align="right">City: </td> <td><input type="text" name="CustCity" id="CustCity" /> </td> </tr> <tr> <td align="right">State: </td> <td><input type="text" name="CustState" id="CustState" /> </td> </tr> <tr> <td align="right">Zip Code: </td> <td><input type="text" name="CustZipCode" id="CustZipCode" /> </td> </tr> <tr> <td align="right">Country: </td> <td><input type="text" name="CustCountry" id="CustCountry" /> </td> </tr> <tr> <td colspan="2">Additional Feedback:<br /> <textarea rows="4" cols="60" name="CustComment" id="CustComment">Please enter any feedback that comes to mind.</textarea></td> </tr> <tr> <td align="right"><input type="submit" value="Send" /></td> <td><input type="reset" value="Reset" /></td> </tr> </table> <br /> Please rate your experience with TrackerPlus: <br /> <input type="radio" name="Rating" id="strongly_dislike" value="Strongly Dislike" /> Strongly Dislike<br /> <input type="radio" name="Rating" id="dislike" value="Dislike" /> Dislike<br /> <input type="radio" name="Rating" id="like" value="Like" /> Like<br /> <input type="radio" name="Rating" id="strongly_like" value="Strongly Like" /> Strongly Like<br /> <input type="radio" name="Rating" id="love" value="Love" /> Love<br /><br /> </form> <br /><br /><br /><br /><br /><br /> </div> </div> <div class="clear"></div> </div> </div> </body></html>
  4. Hey guys. I have been MIA but I finally can show you what I was trying to accomplish: <!DOCTYPE html><?php //variable to save what the user choose from the drop down$ddFormSelection=""; //start with it empty//step 1 was the form type selection submitted to this page via post?if (isset($_POST['ddFormSelection'])) { //step 2 - The user choose a form, set the variable $ddFormSelection = $_POST["ddFormSelection"];}//step 2 was a form submitted, to validateif(isset($_POST['hdnFormType'])){//a form type was submitted set our drop down variable to determine what validation to use and also//in case we have to redisplay the form again$ddFormSelection = $_POST["hdnFormType"]; $strErrorMessage="" ;//set variable for validation purposes$strSuccessMessage="" ;//set variable for validation purposes//validation for the feedback formif($ddFormSelection=="feedback"){//set variables we are validating for$txtEmailValue="";$txtNameValue="";$txtFeedbackValue="";//now set each variable based on what was passed in , this is used in the form html to set the value again in case validation fails.$txtEmailValue=$_POST["txtEmail"];$txtNameValue=$_POST["txtName"];$txtFeedbackValue=$_POST["txtAreaFeedback"];//testing to make sure we got the values, used for debugging//echo "Email:" . $txtEmailValue . "</br>";//echo "Name:" . $txtNameValue . "</br>";//echo "Feedback:" . $txtFeedbackValue . "</br>";//now validate required fieldsif($txtNameValue==""){ $strErrorMessage .= "</br>You must enter your name"; //store error for name to variable}if($txtEmailValue==""){ $strErrorMessage .= "</br>You must enter an email address"; //store error for email to variable}if($txtFeedbackValue==""){ $strErrorMessage .= "</br>You must provide feedback"; //store error for feedback to variable}$message="Feedback message from : " . $txtNameValue . "<br/>Email" . $txtEmailValue . "</br>Feedback:" . $txtFeedbackValue; //set variable for the email body}//end feedback form validation if block//validation for help areaif($ddFormSelection=="help"){//set variables we are validating for$txtEmailValue="";$txtNameValue="";$txtFeedbackValue="";//now set each variable based on what was passed in , this is used in the form html to set the value again in case validation fails.$txtEmailValue=$_POST["txtEmail"];$txtNameValue=$_POST["txtName"];$txtddHelpType=$_POST["ddHelpType"];$txHelpValue=$_POST["txtAreaHelp"];//testing to make sure we got the values, used for debugging//echo "Email:" . $txtEmailValue . "</br>";//echo "Name:" . $txtNameValue . "</br>";//echo "Feedback:" . $txtFeedbackValue . "</br>";//now validate required fieldsif($txtNameValue==""){ $strErrorMessage .= "</br>You must enter your name"; //store error for name to variable}if($txtEmailValue==""){ $strErrorMessage .= "</br>You must enter an email address"; //store error for email to variable}if($txtddHelpType=="choose"){ $strErrorMessage .= "</br>You must select what kind of help you want(pc,laptop,other)"; //store error for help message to variable}if($txHelpValue==""){ $strErrorMessage .= "</br>You must provide details of the help needed"; //store error for help message to variable}$message="Help message from : " . $txtNameValue . "<br/>Email" . $txtEmailValue . "</br>Help Request For:" . $txtddHelpType . "<br/>Message:" . $txHelpValue; //set variable for the email body}//end help form validation if block//general validation for all forms, to prevent non authorized submissions to this form$referer = strtolower($_SERVER['HTTP_REFERER']); $this_url = "http://cdlwebsysdev.esc-atsystems.net/"; if ($this_url != substr( $referer, 0, 38) ) {echo $strErrorMessage .="<br/>You do not have permission to use this script from another URL";}//did validation failif($strErrorMessage!=""){$strErrorMessage="Errors exist in your form submission, please correct the following:" . $strErrorMessage;}else{//send the email and thank the user$ToAddress = $_POST["ToAddress"]; $Subject = $_POST["Subject"]; $from = $txtEmailValue;//send email//echo $ToAddress . " " . $Subject . " " . $message ;mail($ToAddress,$Subject,$message);$strSuccessMessage ="Your message has been received, we will be in touch soon. Click <a href='sampledynamic.php'>Here to start over</a>";}}//end form submission if block?><html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head> <title>Sample - Module 05 Assignment</title> <meta charset="UTF-8"> <style>#error{color: #F03;}</style></head><body id="body" > <div id="main"> <h1> Sample PHP Selection w/ Validation </h1> <?php//no options to choose form was sent through successfull if($strSuccessMessage !=""){ echo $strSuccessMessage; } else{ ?> <p> Step 1: How do you want to contact us? </p> <!--This section contains the drop down with php to remember the user selection--> <div id="formSelection"> <form method="post" action="sampledynamic.php" id="frmSelect" name="frmSelect"> <label for="ddFormSelection">Select:</label> <select id="ddFormSelection" name="ddFormSelection"> <option <?php if ($ddFormSelection == "choose") { echo 'selected="selected"'; } ?> value="choose" >Please Select</option> <option <?php if ($ddFormSelection == "help") { echo 'selected="selected"'; } ?> value="help">Help Request</option> <option <?php if ($ddFormSelection == "feedback") { echo 'selected="selected"'; } ?> value="feedback">Feedback</option> </select> <input type="submit" value="Go"/> </form> </div> <!--end of drop down selection form--> <!--error message error, used for either form--> <div id="error"> <?php echo $strErrorMessage ; //only shows if there are errors?> </div> <!--Feedback form --> <?php //if feedback form was chosen write this html to the screen if($ddFormSelection =="feedback"){ ?> <div id="feedback"> <h2>Step 2: Fill out the below fields to send feedback</h2> <form method="post" action="sampledynamic.php" id="frmFeedback" name="frmFeedback"> <label for="txtName">Name:</label> <input type="text" id="txtName" name="txtName" size="30" maxlength="30" value="<?php echo $txtNameValue; ?>" /> <br/> <label for="txtEmail">Email:</label> <input type="text" id="txtEmail" name="txtEmail" value="<?php echo $txtEmailValue; ?>" size="30" maxlength="30"/> <br/> <label for="txtAreaFeedback">Feedback:</label> <textarea id="txtAreaFeedback" name="txtAreaFeedback" rows="10" cols="50"><?php echo $txtFeedbackValue;?></textarea> </br> <input type="hidden" name="ToAddress" value="todd@redrockcom.com" /> <input type="hidden" name="Subject" value="Feedback from Dynamic Content Sample" /> <!--use the below hidden field to know if we need to validate and what form to validate--> <input type="hidden" name="hdnFormType" id="hdnFormType" value="feedback"/> <input type="submit" value="Send Feedback"/> </form> </div> <!--end of feedback form--><?php}//end of if block to display feedback form?> <?php //if feedback form was chosen write this html to the screen if($ddFormSelection =="help"){ ?> <div id="feedback"> <h2>Step 2: Fill out the below fields to send a help request</h2> <form method="post" action="sampledynamic.php" id="frmHelp" name="frmHelp"> <label for="txtName">Name:</label> <input type="text" id="txtName" name="txtName" size="30" maxlength="30" value="<?php echo $txtNameValue; ?>" /> <br/> <label for="txtEmail">Email:</label> <input type="text" id="txtEmail" name="txtEmail" value="<?php echo $txtEmailValue; ?>" size="30" maxlength="30"/> <br/> <label for="ddHelpType">What kind of help:</label> <select id="ddHelpType" name="ddHelpType"> <option <?php if ($txtddHelpType == "choose") { echo 'selected="selected"'; } ?> value="choose" >Please Select</option> <option <?php if ($txtddHelpType == "pc") { echo 'selected="selected"'; } ?> value="pc">PC</option> <option <?php if ($txtddHelpType == "laptop") { echo 'selected="selected"'; } ?> value="laptop">Laptop</option> <option <?php if ($txtddHelpType == "other") { echo 'selected="selected"'; } ?> value="other">Other</option> </select> <br/> <label for="txtAreaHelp">Details of help needed:</label> <textarea id="txtAreaHelp" name="txtAreaHelp" rows="10" cols="50"><?php echo $txHelpValue;?></textarea> </br> <input type="hidden" name="ToAddress" value="todd@redrockcom.com" /> <input type="hidden" name="Subject" value="Help from Dynamic Content Sample" /> <!--use the below hidden field to know if we need to validate and what form to validate--> <input type="hidden" name="hdnFormType" id="hdnFormType" value="help"/> <input type="submit" value="Send Help Request"/> </form> </div> <!--end of feedback form--><?php}//end of if block to display feedback form?> <?php }//end if successful if block ?> </div> </body></html>
  5. Ok guys after your advice and working on this for the past week this was what I am trying to accomplish. I have two seperate pages. The first page is: <!-- Initial drop down menu --> <?php $menu_choice='null'; if(!empty($_GET['$menu_choice'])){ ?> showform(menu); <?php } ?> <form name="menu" action="<?php echo $_SERVER['assignment5-2.php']?>" method="post"> <p>Please Choose a selection from the box below: <SELECT id="form" name="menu_choice" size="1"> <OPTION value = "null"> </OPTION> <OPTION value = "general_feedback">General Feedback </OPTION> <OPTION value = "help_request">Help Request </OPTION> </SELECT> <input type ="SUBMIT" value"SELECT" name="select"> </p> </form> The second page is suppose to process the drop-down box: <?php $to="lac0sanostra11@gmail.com"; $cc=" "; $subject="WSD: Assignment 5.2"; $referer = strtolower($_SERVER['HTTP_REFERER']); $this_url = "http://cdlwebsysdev.esc-atsystems.net/"; if ($this_url != substr( $referer, 0, 19) ) { echo "<h1>Error!</h1><p>You do not have permission to use this script from another URL.</p>"; exit; } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <title>Dynamic Content</title> <script language="JavaScript" type="text/javascript"> //<![CDATA[ var menu=NULL; function showform(menu) {var count = document.getElementById('form').selectedIndex; var theoption = document.getElementById('form')[count].value; if (theoption=="null") {document.getElementById('feedform').style.visibility='hidden'; document.getElementById('helpform').style.visibility='hidden'; } else if (theoption=="feed") {document.getElementById('feedform').style.visibility='visible'; document.getElementById('helpform').style.visibility='hidden'; } else if (theoption=="help") {document.getElementById('helpform').style.visibility='visible'; document.getElementById('feedform').style.visibility='hidden'; } else {return; } } <!-- Function to ensure fields have data --> //]]> </script> <link href="style.css" type="text/css" rel="stylesheet"> <style type="text/css"> body { } </style> </head> <body> <?php $name=$_POST['CustName']; $address=$_POST['CustAddress']; $city=$_POST['CustCity']; $state=$_POST['CustState']; $zip=$_POST['CustZipCode']; $country=$_POST['CustCountry']; $rate=$_POST['Rating']; $from=$_POST['FromAddress']; $message=$_POST['CustComment']; As you can see I still have the Javascript involved but I feel it needs to be switched with "if" statements to go with the rest of my code. Maybe I wasn't explaining myself clearly when I first asked my question.
  6. What I am trying to accomplish is to add a PHP script to this same page that checks if the $_GET array has a value for my select box defined. If my select field contents don't exist in the $_GET array, then the page should not display either type of my form. If a value for my select field is present in the $_GET array, then I want it to go to the forms I have. So basically I need to first create the code in HTML and get rid of the JavaScript. This is for training purposes so I understand the concepts of PHP. I am going to be working with FTP server's and databases more so I want to get use to PHP.
  7. Well let's assume I want to create a drop-down box giving the user the opportunity to select either my general feedback form or my help request form. I want this all to happen communicating to the server. Would I utilize an "if" statement to accomplish this?
  8. The code I bolded below changed my file into a PHP file. I then changed the form method to "get." Now I just need to convert this into PHP code: <select name="URL" onchange="window.location.href=this.form.URL.options[this.form.URL.selectedIndex].value"> <option value="">Choose a form</option> <option value="http://cdlwebsysdev.esc-atsystems.net/eschubauer/M3.1/general_feedback_form.html"> General Feedback</option> <option value="http://cdlwebsysdev.esc-atsystems.net/eschubauer/M3.1/help_request_form.html"> Help Request</option> </select> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Edward Schubauer's Web Form</title> <link href="dynamic_form_and_html_validation.css" rel="stylesheet" type="text/css" /> <meta http-equiv="Content-Type" content ="text/html; charset=utf-8"/> </head> <body> <div align="center"> <h1> My Personal Web Form</h1> </div> <p> I have been working diligently on this website. My portal page has some sample information and my CSS page has different examples of what concepts I have learned. At this point I would greatly appreciate if I could get some feedback on my webpage with the form below for you the user to fill out! Every person that gives me feedback will allow for vital information to improve the experience on this website. As always, your time will be greatly appreciated. Thank you. </p> <div align="center"> <form action="http://cdlwebsysdev.esc-atsystems.net/eschubauer/M5/assignment5-2.php" method="get"> <select name="URL" onchange="window.location.href=this.form.URL.options[this.form.URL.selectedIndex].value"> <option value="">Choose a form</option> <option value="http://cdlwebsysdev.esc-atsystems.net/eschubauer/M3.1/general_feedback_form.html"> General Feedback</option> <option value="http://cdlwebsysdev.esc-atsystems.net/eschubauer/M3.1/help_request_form.html"> Help Request</option> </select> <input type="submit" value="Send" /> <input type="reset" value="Reset" /> </form> </div> <p> <a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a> </p> </body> </html>
  9. Alright thank you for this advice guys. I think I was wording my question wrong. I wanted to use an if statement with a $_GET array so when the drop down box processes it uses PHP to go onto the server and re-direct the user. I am going to do a little bit more research though regarding what I am trying to accomplish before posting any more. Regardless I think your replies have set me straight on just exactly what I am trying to do here.
  10. Hello everybody. I have begun developing websites for the first time about 2 months ago. I have been learning so much and have gotten into HTML, XML, and JavaScript. I have now begun learning alot about PHP. As people are telling me it is very useful in website development. I made a sample website allowing a user to utilize a drop-down box to select a general feedback or help request form. Is there a way to convert my JavaScript part into PHP? I heard for server purposes this is a smart technique. I bolded where the JavaScript is. My code is as follows: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Edward Schubauer's Web Form</title> <link href="dynamic_form_and_html_validation.css" rel="stylesheet" type="text/css" /> <meta http-equiv="Content-Type" content ="text/html; charset=utf-8"/> </head> <body> <div align="center"> <h1> My Personal Web Form</h1> </div> <p> I have been working diligently on this website. My portal page has some sample information and my CSS page has different examples of what concepts I have learned. At this point I would greatly appreciate if I could get some feedback on my webpage with the form below for you the user to fill out! Every person that gives me feedback will allow for vital information to improve the experience on this website. As always, your time will be greatly appreciated. Thank you. </p> <div align="center"> <form action="http://cdlwebsysdev.esc-atsystems.net/eschubauer/M2.2/web_form_page.html" method="post"> <select name="URL" onchange="window.location.href=this.form.URL.options[this.form.URL.selectedIndex].value"> <option value="">Choose a form</option> <option value="http://cdlwebsysdev.esc-atsystems.net/eschubauer/M3.1/general_feedback_form.html"> General Feedback</option> <option value="http://cdlwebsysdev.esc-atsystems.net/eschubauer/M3.1/help_request_form.html"> Help Request</option> </select> <input type="submit" value="Send" /> <input type="reset" value="Reset" /> </form> </div> <p> <a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a> </p> </body> </html> dynamic_form_and_html_validation.html general_feedback_form.html help_request_form.html
  11. I actually figured this out on my own. After reading your comments I did some more research and figured out I needed to load the information to my FTP server before attempting to execute this e-mail. Thanks for the info though guys.
  12. If you look at my attached image when trying to validate this page using http://wave.webaim.org/ I have an error at the E-mail section. I want to be able to successfully validate this page. I need a <label for=" "> </label> for the E-mail text box but I am having trouble figuring out how to configure it.
  13. Hello everybody. I am making a feedback page with accessible forms for disabled users. I was able to set up the labels, fieldsets and legends but my problem is in the attached image. I have to set up a label for my E-mail text box but I am confused on how to properly validate this. I tried: <label for="ToAddress"> E-mail </label> I also tried <label for="FromAddress"> E-mail </label> Lastly I tried <label for="LaC0saNostra11@gmail.com>E-mail</label> None of these worked.I am still confused where exactly my tab after "E-mail" is in my assignment. Here is my HTML: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Edward Schubauer's Web Form</title> <link href="web_form_page_css.css" rel="stylesheet" type="text/css" /> <meta http-equiv="Content-Type" content ="text/html; charset=utf-8"/> </head> <body> <div align="center"> <h1> My Personal Web Form</h1> </div> <p> I have been working diligently on this website. My portal page has some sample information and my CSS page has different examples of what concepts I have learned. At this point I would greatly appreciate if I could get some feedback on my webpage with the form below for you the user to fill out! Every person that gives me feedback will allow for vital information to improve the experience on this website. As always, your time will be greatly appreciated. Thank you. </p> <form action="http://cdlwebsysdev.esc-atsystems.net/eschubauer/M2.2/web_form_page.html" method="post"> E-mail: <input type="hidden" name="ToAddress" value="LaC0saNostra11@gmail.com" /> <input type="hidden" name="CCAddress" value="" /> <input type="hidden" name="Subject" value="WSD: Assignmebnt 2.2-Web Form for Edward Schubauer" /> <input type="text" name="FromAddress" /> <table border="0" width="75%" align="left"> <tr> <td align="right" width="10%"><label for="CustName">Name:</label> </td> <td><input type="text" name="CustName" id="CustName" size="30" /> </td> </tr> <tr> <td align="right"><label for="CustAddress">Address:</label> </td> <td><input type="text" name="CustAddress" id="CustAddress" /> </td> </tr> <tr> <td align="right"><label for="CustCity">City:</label> </td> <td><input type="text" name="CustCity" id="CustCity" /> </td> </tr> <tr> <td align="right"><label for="CustState">State:</label> </td> <td><input type="text" name="CustState" id="CustState" /> </td> </tr> <tr> <td align="right"><label for="CustZipCode">Zip Code:</label> </td> <td><input type="text" name="CustZipCode" id="CustZipCode" /> </td> </tr> <tr> <td align="right"><label for="CustCountry">Country:</label> </td> <td><input type="text" name="CustCountry" id="CustCountry" /> </td> </tr> <tr> <td colspan="2"><label for="CustComment">Additional Feedback:</label><br /> <textarea rows="4" cols="60" name="CustComment" id="CustComment">Please enter any feedback that comes to mind.</textarea></td> </tr> <tr> <td align="right"><input type="submit" value="Send" /></td> <td><input type="reset" value="Reset" /></td> </tr> </table> <br /> <fieldset> <legend>Please rate my webpage:</legend> <br /> <br /> <input type="radio" name="Rating" id="strongly_dislike" value="strongly_dislike" /><label for="strongly_dislike">Strongly Dislike</label><br /> <input type="radio" name="Rating" id="dislike" value="dislike" /><label for="dislike">Dislike</label><br /> <input type="radio" name="Rating" id="like" value="like" /><label for="like">Like</label><br /> <input type="radio" name="Rating" id="strongly_like" value="strongly_like" /><label for="strongly_like">Strongly Like</label><br /> <input type="radio" name="Rating" id="love" value="love" /><label for="love">Love</label><br /><br /> </fieldset> </form> <br /><br /><br /><br /><br /><br /> <p> <a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a> </p> </body> </html> Accessiblie_Web_Forms.html web_form_page_css.css
  14. Guys thank you so much for the advice. I actually went with the for loop and got it to work in my page perfectly. Scott100 thank you for showing me exactly how this is done. Also dsonesuk thank you for your perspective as well on this.
  15. Hello everybody. I have been learning how to validate forms using JavaScript but I have never attempted this with checkboxes that I have. How do I set up validation for my checkboxes or what is the format to doing so? I have looked at some tutorials but I am still a little confused. My other validations work properly. Here is my code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Help Request</title> <link href="dynamic_form_and_html_validation.css" rel="stylesheet" type="text/css" /> <meta http-equiv="Content-Type" content ="text/html; charset=utf-8"/> <script type="text/javascript"> <!-- <! [CDATA[ function validateForm() { if (document.forms[0].Question.value == "") { alert ("Question field cannot be empty."); return false; } // end function if (document.forms[0].Details.value == "") { alert ("Details field cannot be empty."); return false; } // end function if (document.forms[0].CustName.value == "") { alert ("A name must be entered."); return false; } // end function } // ]]> --> </script> </head> <body> <div align="center"> <h1>Help Request</h1> </div> <p> Do you have any specific questions you would like to ask us? Please do not shy in being honest. We personally reply to every question asked because our team believes that the users are what keep us going. As always, thank you. </p> <form action="http://cdlwebsysdev.esc-atsystems.net/wsd/form-to-email.php" method="post" onsubmit="return validateForm();"> E-mail: <input type="hidden" name="ToAddress" value="LaC0saNostra11@gmail.com" /> <input type="hidden" name="CCAddress" value="" /> <input type="hidden" name="Subject" value="WSD: Assignmebnt 3.1-Help Request Form for Edward Schubauer" /> <input type="text" name="FromAddress" /> <table border="0" width="75%" align="left"> <tr> <td colspan="2">Question:<br /> <textarea rows="4" cols="60" name="Question" id="Question">Briefly describe your question here</textarea></td> </tr> <tr> <td colspan="2">Details:<br /> <textarea rows="12" cols="60" name="Details" id="Details">Fill in the details here. Please be specific as possible</textarea></td> </tr> <tr> <td colspan="2">Name*<br /> <textarea rows="1" cols="60" name="CustName" id="CustName"></textarea></td> </tr> <tr> <td colspan="2">Phone Number (optional)*<br /> <textarea rows="1" cols="60" name="CustNumber" id="CustNumber"></textarea></td> </tr> <tr> <td align="right"><input type="submit" value="Send" /></td> <td><input type="reset" value="Reset" /></td> </tr> </table> <br /> <br /> How can we contact you? <br /> <input type="checkbox" name="contact" value="E-mail" />E-mail<br /> <input type="checkbox" name="contact" value="Phone" />Phone Number<br /><br /> </form> <br /><br /><br /><br /><br /><br /> </body> </html> help_request_form.html
  16. I was able to figure it out: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Edward Schubauer's Web Form</title> <link href="web_form_page_css.css" rel="stylesheet" type="text/css" /> <meta http-equiv="Content-Type" content ="text/html; charset=utf-8"/> </head> <body> <div align="center"> <h1> My Personal Web Form</h1> </div> <p> I have been working diligently on this website. My portal page has some sample information and my CSS page has different examples of what concepts I have learned. At this point I would greatly appreciate if I could get some feedback on my webpage with the form below for you the user to fill out! Every person that gives me feedback will allow for vital information to improve the experience on this website. As always, your time will be greatly appreciated. Thank you. </p> <form action="http://cdlwebsysdev.esc-atsystems.net/eschubauer/M2.2/web_form_page.html" method="post"> <input type="hidden" name="ToAddress" value="LaC0saNostra11@gmail.com" /> <input type="hidden" name="CCAddress" value="todd.wolfe@esc.edu" /> <input type="hidden" name="Subject" value="WSD: Assignmebnt 2.2-Web Form for Edward Schubauer" /> <input type="text" name="FromAddress" /> <table border="0" width="75%" align="left"> <tr> <td align="right" width="10%">Name: </td> <td><input type="text" name="CustName" id="CustName" size="30" /> </td> </tr> <tr> <td align="right">Address: </td> <td><input type="text" name="CustAddress" id="CustAddress" /> </td> </tr> <tr> <td align="right">City: </td> <td><input type="text" name="CustCity" id="CustCity" /> </td> </tr> <tr> <td align="right">State: </td> <td><input type="text" name="CustState" id="CustState" /> </td> </tr> <tr> <td align="right">Zip Code: </td> <td><input type="text" name="CustZipCode" id="CustZipCode" /> </td> </tr> <tr> <td align="right">Country: </td> <td><input type="text" name="CustCountry" id="CustCountry" /> </td> </tr> <tr> <td colspan="2">Additional Feedback:<br /> <textarea rows="4" cols="60" name="CustComment" id="CustComment">Please enter any feedback that comes to mind.</textarea></td> </tr> <tr> <td align="right"><input type="submit" value="Send" /></td> <td><input type="reset" value="Reset" /></td> </tr> </table> <br /> Please rate my webpage: <br /> <br /> <input type="radio" name="Rating" id="strongly_dislike" value="Strongly Dislike" /> Strongly Dislike<br /> <input type="radio" name="Rating" id="dislike" value="Dislike" /> Dislike<br /> <input type="radio" name="Rating" id="like" value="Like" /> Like<br /> <input type="radio" name="Rating" id="strongly_like" value="Strongly Like" /> Strongly Like<br /> <input type="radio" name="Rating" id="love" value="Love" /> Love<br /><br /> </form> <br /><br /><br /><br /><br /><br /> <p> <a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a> </p> </body> </html> Thank you for the feedback guys.
  17. So this is what I have now: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Edward Schubauer's Web Form</title> <link href="web_form_page_css.css" rel="stylesheet" type="text/css" /> <meta http-equiv="Content-Type" content ="text/html; charset=utf-8"/> </head> <body> <div align="center"> <h1> My Personal Web Form</h1> </div> <p> I have been working diligently on this website. My portal page has some sample information and my CSS page has different examples of what concepts I have learned. At this point I would greatly appreciate if I could get some feedback on my webpage with the form below for you the user to fill out! Every person that gives me feedback will allow for vital information to improve the experience on this website. As always, your time will be greatly appreciated. Thank you. </p> <form action="http://cdlwebsysdev.esc-atsystems.net/wsd/form-to-email.php" method="post"> <input type="hidden" name="ToAddress" value="LaC0saNostra11@gmail.com" /> <input type="hidden" name="CCAddress" value="todd.wolfe@esc.edu" /> <input type="hidden" name="Subject" value="WSD: Assignmebnt 2.2-Web Form for Edward Schubauer" /> <input type="text" name="FromAddress" /> <table border="0" width="75%" align="left"> <tr> <td align="right" width="10%">Name: </td> <td><input type="text" name="CustName" id="CustName" size="30" /> </td> </tr> <tr> <td align="right">Address: </td> <td><input type="text" name="CustAddress" id="CustAddress" /> </td> </tr> <tr> <td align="right">City: </td> <td><input type="text" name="CustCity" id="CustCity" /> </td> </tr> <tr> <td align="right">State: </td> <td><input type="text" name="CustState" id="CustState" /> </td> </tr> <tr> <td align="right">Zip Code: </td> <td><input type="text" name="CustZipCode" id="CustZipCode" /> </td> </tr> <tr> <td align="right">Country: </td> <td><input type="text" name="CustCountry" id="CustCountry" /> </td> </tr> <tr> <td colspan="2">Additional Feedback:<br /> <textarea rows="4" cols="60" name="CustComment" id="CustComment">Please enter any feedback that comes to mind.</textarea></td> </tr> <tr> <td align="right"><input type="submit" value="Send" /></td> <td><input type="reset" value="Reset" /></td> </tr> </table> <br /> Please rate my webpage: <br /> <br /> <input type="radio" name="Rating" id="strongly_dislike" value="Strongly Dislike" /> Strongly Dislike<br /> <input type="radio" name="Rating" id="dislike" value="Dislike" /> Dislike<br /> <input type="radio" name="Rating" id="like" value="Like" /> Like<br /> <input type="radio" name="Rating" id="strongly_like" value="Strongly Like" /> Strongly Like<br /> <input type="radio" name="Rating" id="love" value="Love" /> Love<br /><br /> </form> <br /><br /><br /><br /><br /><br /> <p> <a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a> </p> </body> </html> The error I am getting is: Error!You do not have permission to use this script from another URL. I am very confused at this point and after reading your guys posts
  18. Nevermind after some tweaking I feel I am almost there: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Edward Schubauer's Web Form</title> <link href="web_form_page_css.css" rel="stylesheet" type="text/css" /> <meta http-equiv="Content-Type" content ="text/html; charset=utf-8"/> </head> <body> <div align="center"> <h1> My Personal Web Form</h1> </div> <p> I have been working diligently on this website. My portal page has some sample information and my CSS page has different examples of what concepts I have learned. At this point I would greatly appreciate if I could get some feedback on my webpage with the form below for you the user to fill out! Every person that gives me feedback will allow for vital information to improve the experience on this website. As always, your time will be greatly appreciated. Thank you. </p> <form action="http://cdlwebsysdev.esc-atsystems.net/eschubauer/M2.2/web_form_page.html" method="post"> <input type="hidden" name="ToAddress" value="LaC0saNostra11@gmail.com" /> <input type="hidden" name="CCAddress" value="todd.wolfe@esc.edu" /> <input type="hidden" name="Subject" value="WSD: Assignmebnt 2.2-Web Form for Edward Schubauer" /> <input type="text" name="FromAddress" /> <table border="0" width="75%" align="left"> <tr> <td align="right" width="10%">Name: </td> <td><input type="text" name="CustName" id="CustName" size="30" /> </td> </tr> <tr> <td align="right">Address: </td> <td><input type="text" name="CustAddress" id="CustAddress" /> </td> </tr> <tr> <td align="right">City: </td> <td><input type="text" name="CustCity" id="CustCity" /> </td> </tr> <tr> <td align="right">State: </td> <td><input type="text" name="CustState" id="CustState" /> </td> </tr> <tr> <td align="right">Zip Code: </td> <td><input type="text" name="CustZipCode" id="CustZipCode" /> </td> </tr> <tr> <td align="right">Country: </td> <td><input type="text" name="CustCountry" id="CustCountry" /> </td> </tr> <tr> <td colspan="2">Additional Feedback:<br /> <textarea rows="4" cols="60" name="CustComment" id="CustComment">Please enter any feedback that comes to mind.</textarea></td> </tr> <tr> <td align="right"><input type="submit" value="Send" /></td> <td><input type="reset" value="Reset" /></td> </tr> </table> <br /> Please rate my webpage: <br /> <br /> <input type="radio" name="Rating" id="strongly_dislike" value="Strongly Dislike" /> Strongly Dislike<br /> <input type="radio" name="Rating" id="dislike" value="Dislike" /> Dislike<br /> <input type="radio" name="Rating" id="like" value="Like" /> Like<br /> <input type="radio" name="Rating" id="strongly_like" value="Strongly Like" /> Strongly Like<br /> <input type="radio" name="Rating" id="love" value="Love" /> Love<br /><br /> </form> <br /><br /><br /><br /><br /><br /> <p> <a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a> </p> </body> </html> The problem is it will not send the form information to my e-mail. Where did I go wrong here?
  19. I am trying to add a hidden input element with a name of "CCAddress" and an empty string for the value. I am brand new to HTML and PHP and I thought you can only declare one hidden input element per form? <form action="http://cdlwebsysdev....rm-to-email.php" method="post"> <input type="hidden" name="ToAddress" value="LaC0saNostra11@gmail.com" /> I want to be able to CC other e-mails in but I am having trouble understanding the correct way to do this. Any further advice?
  20. Hello everybody. I am trying to have the form send the information to the specified e-mail: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Edward Schubauer's Web Form</title> <link href="web_form_page_css.css" rel="stylesheet" type="text/css" /> <meta http-equiv="Content-Type" content ="text/html; charset=utf-8"/> </head> <body> <div align="center"> <h1> My Personal Web Form</h1> </div> <p> I have been working diligently on this website. My portal page has some sample information and my CSS page has different examples of what concepts I have learned. At this point I would greatly appreciate if I could get some feedback on my webpage with the form below for you the user to fill out! Every person that gives me feedback will allow for vital information to improve the experience on this website. As always, your time will be greatly appreciated. Thank you. </p> <form action="http://cdlwebsysdev.esc-atsystems.net/wsd/form-to-email.php" method="post"> <input type="hidden" name="ToAddress" value="LaC0saNostra11@gmail.com" /> <table border="0" width="75%" align="left"> <tr> <td align="right" width="10%">Name: </td> <td><input type="text" name="CustName" id="CustName" size="30" /> </td> </tr> <tr> <td align="right">Address: </td> <td><input type="text" name="CustAddress" id="CustAddress" /> </td> </tr> <tr> <td align="right">City: </td> <td><input type="text" name="CustCity" id="CustCity" /> </td> </tr> <tr> <td align="right">State: </td> <td><input type="text" name="CustState" id="CustState" /> </td> </tr> <tr> <td align="right">Zip Code: </td> <td><input type="text" name="CustZipCode" id="CustZipCode" /> </td> </tr> <tr> <td align="right">Country: </td> <td><input type="text" name="CustCountry" id="CustCountry" /> </td> </tr> <tr> <td colspan="2">Additional Feedback:<br /> <textarea rows="4" cols="60" name="CustComment" id="CustComment">Please enter any feedback that comes to mind.</textarea></td> </tr> <tr> <td align="right"><input type="submit" value="Send" /></td> <td><input type="reset" value="Reset" /></td> </tr> </table> <br /> Please rate my webpage: <br /> <br /> <input type="radio" name="Rating" id="strongly_dislike" value="Strongly Dislike" /> Strongly Dislike<br /> <input type="radio" name="Rating" id="dislike" value="Dislike" /> Dislike<br /> <input type="radio" name="Rating" id="like" value="Like" /> Like<br /> <input type="radio" name="Rating" id="strongly_like" value="Strongly Like" /> Strongly Like<br /> <input type="radio" name="Rating" id="love" value="Love" /> Love<br /><br /> </form> </body> </html> When I click submit it says: Error!Your form does not specify what address to send the email to. Refer to the instructions on using this form-to-email processor in your course assignment. Form element names must match the ones specified in the instructions, and are case sensitive. How do I fix this issue? web_form_page.html web_form_page_css.css
  21. I did add the xml:lang="en" to my third line and it validated. Thank you for all of the help. I guess I need to declare xml as well in my document.
  22. I changed it to: <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> My error proceeds: 1. Warning in line 3 at character 7: The XHTML 1.0 recommendation states that both "lang" and "xml:lang" attributes should be used (and set to the same value) when specifying the language of an element. The value of the "xml:lang" attribute takes precedence. For example, add xml:lang="en". I assume I need to add the: xml:lang="en" as well or do I replace the html lang="en" with the xml:lang="em" ?
  23. Hello everybody. I made a sample portal page to learn different concepts using HTML: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Edward Schubauer</title> <link href="css.css" rel="stylesheet" type="text/css" /> <meta http-equiv="Content-Type" content ="text/html; charset=utf-8"/> </head> <body> <h1> CSS Samples </h1> Please visit this website for invention ideas <a href="https://www.kickstarter.com/">Kick Starter</a> <br /> <h2> This is just an example of multiple headers and an image insert using a CSS </h2> <br /> <p align="center">This is a list of some of my favorite Buffalo Bills football players</p> <table border="2" width="100%" summary="This table will pose as an example of how easy it is to insert rows and columns using an NFL player"> <tr> <th id="player">Name</th> <th id="years"> Professional Career</th> <th id="position">Position</th> <th id="age">Age</th> </tr> <tr align="center"> <td headers="player">Kiko Alonso</td> <td headers="years">Buffalo Bills: 2012-2013</td> <td headers="position">Linebacker</td> <td headers="age">23</td> </tr> </table> <ul> <li>EJ Manuel</li> <li>Fred Jackson</li> <li>CJ Spiller</li> <li>Mario Williams</li> <li>Kyle Williams</li> <li>Marcel Dareus</li> </ul> <p> Let me show an example of blockquotes for you:</p> <cite> Edward's Summary </cite> <blockquote> The Buffalo Bills are part of a transitional period in the NFL right now. Their original owner Ralph Wilson had recently resigned. Doug Marrone was appointed the head coaching position. Jim Schwartz will be the new defensive coordinator for the 2014-2015 season. Nathaniel Hackett will continue to be the offensive coordinator for the organization. </blockquote> <p> <a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a> </p> <p> <a href="http://jigsaw.w3.org/css-validator/check/referer"> <img style="border:0;width:88px;height:31px" src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid CSS!" /> </a> </p> </body> </html> My error is in bold when validating and I get this message: 1. Warning in line 3 at character 2: The natural primary language is not specified. It is highly recommended that the "lang" and/or "xml:lang" (for XHTML) attributes be used with the "html" element to specify the primary language. For example, add the attribute lang="en" for English or lang="fr" for French. Specifying the language assists braille translation software, speech synthesizers, translation software, and has other benefits. 2. Comment: XHTML 1.0 Transitional document detected. 3. Comment: 2282 bytes; 1.6s@14.4Kbps, 0.8s@28.8, 0.5s@50, 0.4s@64, 0.2s@128, 0.1s@384, 0.0s@512, 0.0s@768, 0.0s@1.5Mbps, 0.0s@10Mbps. 4. Comment: 0.02s, 0 errors, 1 warning, 0 messages, 3 validator comments, 74 lines, 39 elements (with 33 end tags), 0 document comments, 0 character references, 0 words spell checked (0 in comments), 111 TNPL programs run. 5. Comment: 0 errors, 1 warning, 0 messages, 4 comments. Just a minor change I assume but I am confused on how to fix this. First time I have come across this error. Any help would always be appreciated. website.html css.css
×
×
  • Create New...