Validation problem in Internet Explorer (Was: Internet Explorer problem)

Ive found a problem on my website ive got customer details as seen below, but the validation doesn't work in Internet Explorer. So for example the date is a validation, if i dont enter anything in there then it stills go to the next page. Any ideas on what the problem is? Thanks
<input name="Company" type="text" id="Company" value="Company *" size="20" readonly />
  <input name="Company" type="text" required />
  <input name="Tel Number" type="text" id="Tel Number" value="Tel Number *" size="20" readonly />
  <input name="Tel_Number" type="tel" required/>
</p>
<p>
  <input name="Email Address" type="text" id="Email Address" value="Email Address *" size="20" readonly />
  <input name="Email_Address" type="email" value="" required/>
  <input name="Delivery Date" type="text" id="Delivery Date" value="Delivery Date *" size="20" readonly />
  <input name="Delivery_Date" type="date" value="" required/>
</p>
<p>
  <input name="Ordered By" type="text" id="Ordered By" value="Ordered By *" size="20" readonly />
  <input name="Ordered_By" type="text" value="" required/>
  <input name="PO Number" type="text" id="PO Number" value="PO Number" size="20" readonly />
  <input name="PO_Number" type="text" value="" id="PO_Number"/>
</p>
<p>
  <textarea name="Address" cols="16" rows="3" readonly id="Address">Delivery Address and Post Code *</textarea>
  <textarea name="Address" cols="20" rows="3" required ></textarea>
  <textarea name="Special Requirements" cols="35" rows="3" readonly id="Special Requirements">Special Requirements
(**EG. No of Vegetarians, Delivery Time, Gluten Free/Celiac etc..**)</textarea>
  <textarea name="Special_Requirements" cols="23" rows="3" id="Special_Requirements"></textarea>
</p>

Save the code below as customer_order.php and change:
// recipient
$to = "[email protected]";
This will send the information to your email address if all the required fields are filled in. The fields you dont want validated remove them from the code - for instance remove the below if you do NOT want to validate the Special Requirements form field:
$Special_Requirements = trim($_POST['Special_Requirements']);
if(empty($Special_Requirements)) {
$error['Special_Requirements'] = "Please provide any Special Requirements";
Change the below if the email is sent to point to a page which informs the sender the order has been successfully sent:
header ('Location: order_sent_successfully.php');
<!-- CODE STARTS HERE -->
<?php
if (array_key_exists('submit' , $_POST)) {
$Company = trim($_POST['Company']);
if(empty($Company)) {
$error['Company'] = "Please Provide Company Name";
$Tel_Number = trim($_POST['Tel_Number']);
if(empty($Tel_Number)) {
$error['Tel_Number'] = "Please Telephone Number";
$Email_Address = trim($_POST['Email_Address']);
// check for valid email address
$pattern = '/^[^@]+@[^\s\r\n\'";,@%]+$/';
if (!preg_match($pattern, trim($Email_Address))) {
$error['Email_Address'] = 'Please Enter a Valid Email Address';
$Delivery_Date = trim($_POST['Delivery_Date']);
if(empty($Delivery_Date)) {
$error['Delivery_Date'] = "Please Provide Deliver Date";
$Ordered_By = trim($_POST['Ordered_By']);
if(empty($Ordered_By)) {
$error['Ordered_By'] = "Please Provide Ordered By";
$PO_Number = trim($_POST['PO_Number']);
if(empty($PO_Number)) {
$error['PO_Number'] = "Please provide PO Number";
$Delivery_Address = trim($_POST['Delivery_Address']);
if(empty($Delivery_Address)) {
$error['Delivery_Address'] = "Please provide Delivery Address";
$Special_Requirements = trim($_POST['Special_Requirements']);
if(empty($Special_Requirements)) {
$error['Special_Requirements'] = "Please provide any Special Requirements";
// recipient
$to = "[email protected]";
// email subject
$subject = "Customer Order from Website";
// sender
$sender = "From: ".$_POST['Email_Address']."\r\n";
// build the email message
$message = "Order from Website.\n\n";
$message .= "Company: $Company\n\n";
$message .= "Telephone: $Tel_Number\n\n";
$message .= "Email Address: $Email_Address\n\n";
$message .= "Delivery Date: $Delivery_Date\n\n";
$message .= "Ordered By: $Ordered_By\n\n";
$message .= "PO Number: $PO_Number\n\n";
$message .= "Delivery Address: $Delivery_Address\n\n";
$message .= "Special Requirements: $Special_Requirements\n\n";
if(!isset($error)) {
mail($to, $subject, $message, $sender);
header ('Location: order_sent_successfully.php');
?>
<?php
foreach($error as $value) {
    echo "<p style='color: red;'>".$value."</p>";
?>
<form name="customer_details" action="customer_order.php" method="post">
<input name="Company1" type="text" id="Company" value="Company *" size="20" readonly />
  <input name="Company" type="text" value="<?php if(isset($Company)) { echo $Company; } ?>" />
<input name="Tel Number" type="text" id="Tel Number" value="Tel Number *" size="20" readonly />
  <input name="Tel_Number" type="tel" value="<?php if(isset($Tel_Number)) { echo $Tel_Number; } ?>"/>
</p>
<p>
  <input name="Email Address" type="text" id="Email Address" value="Email Address *" size="20" readonly />
  <input name="Email_Address" type="email" value="<?php if(isset($Email_Address)) { echo $Email_Address; } ?>"/>
  <input name="Delivery Date" type="text" id="Delivery Date" value="Delivery Date *" size="20" readonly />
  <input name="Delivery_Date" type="date" value="<?php if(isset($Delivery_Date)) { echo $Delivery_Date; } ?>"/>
<label>
</label>
</p>
<p>
  <input name="Ordered By" type="text" id="Ordered By" value="Ordered By *" size="20" readonly />
  <input name="Ordered_By" type="text" value="<?php if(isset($Ordered_By)) { echo $Ordered_By; } ?>" />
  <input name="PO Number" type="text" id="PO Number" value="PO Number" size="20" />
  <input name="PO_Number" type="text" id="PO_Number" value="<?php if(isset($PO_Number)) { echo $PO_Number; } ?>"/>
</p>
<p>
<textarea name="Delivery Address" cols="16" rows="3" readonly id="Address">Delivery Address and Post Code *</textarea>
<textarea name="Delivery_Address" cols="20" rows="3"  ><?php if(isset($Delivery_Address)) { echo $Delivery_Address; } ?></textarea>
<textarea name="Special Requirements" cols="35" rows="3" readonly id="Special Requirements">Special Requirements
(**EG. No of Vegetarians, Delivery Time, Gluten Free/Celiac etc..**)</textarea>
<textarea name="Special_Requirements" cols="23" rows="3" id="Special_Requirements"><?php if(isset($Special_Requirements)) { echo $Special_Requirements; } ?></textarea>
</p>
<input type="submit" name="submit" id="submit" value="Submit">
<form>

Similar Messages

  • Reader 9 causes message "Internet Explorer has encountered a problem and needs to close.  We are sorry for the inconvenience." whenever a tab is closed.

    After installing reader 9, Internet Explorer gives the message: "Internet Explorer has encountered a problem and needs to close. We are sorry for the inconvenience." everytime I close an internet window. If I remove reader 9, the problem no longer occurs. Reinstalling reader 9 causes the problem to return. I got rid of reader 8.1.4 because it was not working properly. Any suggestions about this issue?
    OS - Windows XP Pro

    This could some problem with you Windows OS. check for viruses or like.
    -Prasanth

  • Return commit for DP-K---Why no Internet Explorer access due to problem with web page?

    I ran full scans on MBAM & SUPERAntiSpyware as requested.  All I got was 2 adware tracking cookies detected with the spyware program.  I have Windows Vista Home Basic with a 32-bit operating system  IE version was Internet Explorer 8 & I also downloaded Explorer 9 with no difference in result.  The toolbar "fix" was probably in regards to general computer problems. Please advise.

    Hi,
    First, close all open applications.
    From the Start Menu, open All Programs, open Accessories, right click the Command Prompt and select 'Run as Administrator'.  Into the prompt, type the following commands, hitting enter after each command.  Include spaces in the commands where shown.
    ipconfig /flushdns
    nbtstat -R
    nbtstat -RR
    netsh int ip reset c:\resetlog.txt
    netsh winsock reset
    When complete, type exit and hit enter, then restart the PC and check connectivity.
    If this doesn't resolve the issue, another area worth checking is whether there is any problem with the Layered Service Providers on the PC - although problems with these usually cause no connection at all.  You can do this by downloading LSP-Fix on the link below.  Save this to your Desktop.  This is a stand-alone application so you can just delete it afterwards.
    LSP-Fix
    When download, right click the application and select 'Run as Administrator'.  If everything is ok with your LSPs you will see green writing stating this.  If it does detect a problem, post back with the error.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • Hello, after Internet Explorer was activated, Mozilla Firefox is blank, when a connection to a web page is asked, it shows that the connection is broken.

    Prior to this, it was vice-versa, Internet Explorer was blank and couldn't connect to any web page, after Firefox was activated. When a virus disfunction with Firefox came up, we uninstalled it, installed it again, and it worked fine, with Internet Explorer not working again. When a friend made an adjustement and made it work, we discovered later, that Firefox had the problem of not connecting now.

    see http://kb.mozillazine.org/Firewalls

  • A problem with this webpage caused Internet Explorer (IE9) to close and reopen the tab

    I have IE9 (using 32-bit version) installed on a relatively new laptop with Windows 7 64-bit. Up until last weekend IE9 worked fine and Flash Player worked fine too.
    At the weekend a webpage asked for Flash Player to be updated - which I did. Ever since then whenever I go to a webpage needing Flash Player I get the message "A problem with this webpage caused Internet Explorer to close and reopen the tab". This happens twice and then an IE9 error page.
    I have read the discussions in here about the problems with Flash Player 10.3 and have tried the various solutions. I have updated to 10.3.181.16 having tried 15 and 14 previously. Same problem.
    I have reset IE9. Same problem.
    I have disabled all add-ons which stops the problem. If I enable just the Flash Player add-on then the problem recurs. Since there are so many webpages that use Flash I do not want to run my browser without this add-on running.
    If I enable the add-on and run IE9 using software rendering instead of GPU rendering then I don't get the problem. However, this isn't exactly making the best use of the resources on my laptop.
    This may well all be related to the 10.3 problems but no one seems to have mentioned having a problem with tabs closing and reopening so I thought I would post on here to check.
    Any suggestions for how to solve this (other than using software rendering)?

    Thanks again for your reply. I appreciate the time you have taken to respond.
    I think, however, you misunderstand the problem. IE9 does not reopen the tabs on just one website - it is doing this on every website that needs Flash Player. Therefore, running in Compatibility mode is not an option. In fact, because IE9 reopens the tabs so quickly and then ends up with an error page, I cannot even click the Compatibility button anyway.
    I could use ActiveX filtering - true. All that this means is that Flash does not play on any of the websites. When I want to re-enable ActiveX for a particular website where I need to see the Flash Player item, this just triggers the error.
    This problem also happened on .14, .15 and well as the current .16 version. It did not happen with the previous version of Flash Player that I had on the system (version 10.2 I think).
    The fact is that either Flash Player or IE9 or both is/are broken. The two choices I am still left with are:
    1. Use software rendering (which contradicts the latest advertisements for IE9 about unleashing the power of IE)
    2. Use another browser - I have no problems with either Firefox or Chrome

  • Since I downloaded Firefox 4, I can't see attachments in my Yahoo mail. This is not a problem of Yahoo, because with Internet Explorer works fine. What is the problem?

    Question
    Since I downloaded Firefox 4, I can't see attachments in my Yahoo mail. This is not a problem of Yahoo, because with Internet Explorer works fine. What is the problem?

    Ok, now they are showing. I restarted my computer again and they are showing now.

  • I cant open many website with firefox, there say filter not let open this site, but when i open they with internet explorer not have any problem.

    i cant open many website with firefox, there say filter not let open this site, but when i open they with internet explorer not have any problem.

    Could you post an example of the filter message?
    This article has more information on the filters built in to Firefox: [http://www.mozilla.org/en-US/firefox/phishing-protection/ Firefox Phishing and Malware Protection].
    It's possible that you also have a Firefox add-on, or external software, that is filtering what you see. However, we don't have enough information to help identify it yet. If you want to review a list of your add-ons, you can find them under: Help > Troubleshooting Information.

  • I can't download videos to Real Player. The settings are correct and i can download in Internet Explorer 7 with no problem but not FireFox 5...any ideas??

    I can't download videos to Real Player. The settings are correct and i can download in Internet Explorer 7 with no problem but not FireFox 5...any ideas??

    I'm still experiencing this problem.  I went to settings, general, software and it says Install now.  But when I try, I get an error message. 

  • I use gmail , it says i can't access it because browsers cookies are disabled , THEY ARE NOT. I go into tools and options and cookies are enabled. I do not have this problem when i switch to internet explorer.

    i use gmail , it says i can't access it because browsers cookies are disabled , THEY ARE NOT. I go into tools and options and cookies are enabled. I do not have this problem when i switch to internet explorer. If the issue is not resolved i will switch back to internet explorer . any help you can give would be appreciated.

    refer to the
    * [[Websites say cookies are blocked - Unblock them]]
    * [[JavaScript settings and preferences for interactive web pages]]
    * [[Settings for fonts, languages, pop-ups, images and JavaScript]]
    articles
    Thank you!

  • This error (HTTP 404 Not Found) means that Internet Explorer was able to connect to the website, but the page you wanted was not found. It's possible that the webpage is temporarily unavailable. Alternatively, the website might have changed or removed the

    This error (HTTP 404 Not Found) means that Internet Explorer was able to connect to the website, but the page you wanted was not found. It's possible that the webpage is temporarily unavailable. Alternatively, the website might
    have changed or removed the webpage.
    For more information about HTTP errors, see Help.

    check this
    http://social.msdn.microsoft.com/Forums/en-US/5576aba1-d196-42ce-bd62-ad5ddfa3a8fd/this-error-http-404-not-found-means-that-internet-explorer-was-able-to-connect-to-the-website-but?forum=sharepointgeneralprevious

  • How do I get Firefox to open when I dial up to connect to the internet, instead of internet explorer for the internet service provider?

    I have a dial up connection for the internet through Netzero.com, and when I click on it to dial up to the internet, it brings up the Netzero home page on Internet Explorer. I've changed my default home page from Internet Explorer, to Firefox, but when the internet is connected, Internet Explorer is the one that brings up the Netzero home page, not Firefox, so I have to click on the icon for Firefox, and then it opens, with Netzero home page on it, so I have to go through 2 different processes to get to use Firefox. I downloaded Firefox because it's suppose to be faster that Internet Explorer, especially since Internet Explorer keeps not responding when I'm in the middle of doing something. So I thought I'd try Firefox, but it doesn't seem to be faster than Internet Explorer, since the ISP that I have has a web accelerator, but it doesn't work on Firefox for some reason, I can see on a meter on my desktop when it's accelerating, and Firefox doesn't accelerate ever, if I change over to Internet Explorer, I can see the meter accelerating the web page. Hope you can help me with this problem, as I like Firefox. Thank you very much.

    Try changing firefox to the default browser: [http://kb.mozillazine.org/Setting_Your_Default_Browser]. That will probably get firefox to open when you dial up.
    I'm not sure what you mean by "the meter accelerating the web page". Can you explain that?
    Thank you

  • No external images in Outlook 2013 & no internet access in Internet Explorer 11

    I use a an automatic configuration script http://XXXXukproxy.internal.XXXXXXXX.com/proxy.pac
    I also use a combination of 2 VPNs through Avaya VPN Client or Cisco AnyConnect Secure Mobility Client.
    When I'm connected to the VPN with the Avaya VPN Client I can't get ANY internet pages to load in Internet Explorer and I can't get ANY external images to load in Outlook 2013
    I can use the exact same proxy settings in Chrome and Firefox with no problems what so ever.
    If I remove the automatic configuration script I still get no internet access in Internet Explorer.
    When I'm connected to the VPN with the Cisco AnyConnect Secure Mobility Client it's fine. It's also fie when I'm not using any of the VPN's
    Anyone got any ideas? Can't be the proxy or the VPN as it's perfectly ok in Chrome and Firefox.
    Thanks in advance.

    Hi,
    First please run Outlook in Safe Mode:
    Press Win + R and type “outlook.exe /safe” in the blank box, then press Enter.
    If there’s no problem in Safe Mode, disable the suspicious add-ins to verify which add-ins caused this issue.
    We may also try to change the Location of Temporary InternetExplorer Files in Internet Explorer to test the result (the steps below are for IE 10):
    Internet Explorer -> Internet options -> General
    tab -> Under Browsing history, click on Settings
    button -> Temporary Internet Files tab -> Under Current location, click on
    Move folder button -> Choose the new location, click
    OK.
    Regards.
    Melon Chen
    TechNet Community Support

  • I have an old Mac G5 with OSX 10.5.8  After a crash of my HD, I reinstalled the CS3. At the time of recording I get a window with the message "COMPLETED REGISTRATION" and under "There was a problem sending the informasioni via internet" and still under th

    I have an old Mac G5 with OSX 10.5.8
    After a crash of my HD, I reinstalled the CS3.
    At the time of recording I get a window with the message "COMPLETED REGISTRATION" and under "There was a problem sending the informasioni via internet" and still under three choices to "send back" and "records in a second time "or" never record "and I continue to choose the latter option.
    Another problem is that in Bridge (version 2.0.0.975) I can no longer see thumbnails of RAW files from my Canon 40D that I saw before.
    Should I upgrade ACR? which is the latest version supported on my Mac?
    thank you

    Sergio Bellotto if you keep receiving the registration screen then please try accepting the screen in a different User account.

  • My Mac suddenly started getting a pop up message saying "There was a problem conecting to the server. URLs with the type "file" are not supported." My internet is working fine,no problem connecting. I just keep getting this message which I click off .

    My Mac suddenly started getting a pop up message saying "There was a problem conecting to the server. URLs with the type "file" are not supported." My internet is working fine,no problem connecting. I just keep getting this message which I click off and continue working.

    Open the Time Machine pane in System Preferences. If it shows that Time Machine is ON, click the padlock icon in the lower left corner, if necessary, to unlock it. Scroll to the bottom of the list of backup drives and click Add or Remove Backup Disk. Remove all the disks, then add them back. Quit System Preferences. Test.

  • HT1433 Hi, my internet sharing was working perfectly in 10.6.8, sharing my vpn connection to my apple tv with no problems. I then upgraded to 10.7 etc and internet sharing stopped. I have since reverted my computer back to 10.6.8 but no luck still, though

    Hi, my internet sharing was working perfectly in 10.6.8, sharing my vpn connection to my apple tv with no problems. I then upgraded to 10.7 etc and internet sharing stopped. I have since reverted my computer back to 10.6.8 but no luck still, thoughts?

    Hi, my internet sharing was working perfectly in 10.6.8, sharing my vpn connection to my apple tv with no problems. I then upgraded to 10.7 etc and internet sharing stopped. I have since reverted my computer back to 10.6.8 but no luck still, thoughts?

Maybe you are looking for

  • How to get the path of the image stored in sap??

    Hi All The problem is While making an entry in standard there is a field called documents through which we attach our images in sap. How to get the path of the image stored with the corresponding order so that the image can be displayed while we are

  • Can I send only some selected page of a PDF doc. by email??

    If so, how??

  • Mozilla to phase out non-secure HTTP

    Mozilla has announced its intent to phase out all use of "standard" HTTP, replacing it by the (more-)secure HTTPS.   This involves: Setting a date after which all "new" features will be available only to secure websites Gradually phasing out access t

  • How to add jar files to applet's classpath

    hi everyone, i got an issue to add jar file's to applt's classpath, i looked around accross many resources but getting no solution on this. i have a commons-httpclient3.1.jar and i have to make it available it to a an applet class bundled in a jar fi

  • Smart Object in CS5

    Hi, I want to save my time, and i know that it's possible to copy a vector object from illustrator to photoshop. Photoshop keep the relation on this object as a SMART OBJECT. Is it possible to copy a vector from illustrator to Indesign in the same wa