I have an email validation script on my page and a populate form fields script that doesn't work unless it's the only script written. Here are the scripts. Thanks
<script type="text/javascript"><!--
function validateForm() {
with (document.drbrake) {
var alertMsg = "The following REQUIRED fields\nhave been left empty:\n";
if (fullname.value == "") alertMsg += "\nfullname";
if (emailcheck.value == "") alertMsg += "\nemailcheck";
if (telephone.value == "") alertMsg += "\ntelephone";
if (selectproduct.value == "") alertMsg += "\nselectproduct";
if (problem.value == "") alertMsg += "\nproblem";
if (alertMsg != "The following REQUIRED fields\nhave been left empty:\n") { alert(alertMsg);
return false;
} else {
return true;
// -->
</script>
<script language="JavaScript1.2">
//Advanced Email Check credit-
//By JavaScript Kit (http://www.javascriptkit.com)
//Over 200+ free scripts here!
var testresults
function checkemail(){
var str=document.validation.emailcheck.value
var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$ /i
if (filter.test(str))
testresults=true
else{
alert("Please input a valid email address!")
testresults=false
return (testresults)
</script>
<script>
function checkbae(){
if (document.layers||document.getElementById||document.all)
return checkemail()
else
return true
</script>
I do see issues with the script, but do you realize that HTML5 has all this capability build in, so not a single bit of the code you posted is needed? Of course there may be a reason you are doing it the way you are, but I don't know what that reason would be.
In your forms, you can simply add "required" to an input field to make it required. And by making an email field the email type, it will automatically be validated for correctness. See below:
<input type='text' value='<?php echo last_name ?>' name='last_name' required />
<input type='email' value='<?php echo email ?>' name='email' required />
Assuming that your form is processed by PHP, you would then use further validation in PHP. But the HTML5 validation is just as good as javascript validation and easier to use.
With the HTML5 validation, all fields remain populated and the form cannot be submitted if anything fails validation. I added the value attribute to the input examples because normally, if the PHP validation fails, you want to re-populate the form with what is stored in the POST array.
Similar Messages
-
Do I needing an additional product?
I don't know what "Speaker" is.
If your file is MP3, try pickle player. It works in all web devices.
http://www.pickleplayer.com/examples/
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb -
I've upgraded to itunes 11.1.4 Now my ipod and my wife's will not connect/ sync. Itunes says it can detect an ipod but it can't be identified correctly. I have uninstalled and re installed ITunes but it still doesn't work
I too am having the same problem. I'm glad to know it's not just me
-
If I have two email accounts, one personal hotmail account and one MS Exchange work account on my iPhone 4s, How can I setup individual notifications for each account? Fore example, if I get a work email, I want to hear a DING, DING....If I get a personal email, I want to hear a BEEP, BEEP. Right now, any email from any account has the same notification. I want work incoming email notification to be different than personal incoming notification. The only semi-workaround I've seen is just disable any notification for the Hotmail account, so only work emails would notify. But then I don't know when I get a personal email. Even the lowely Blackberry Torch 9800 has this feature..not iPhone 4s??
ThanksSorry you get only one notification sound for all email accounts. you can send a suggestion to apple here http://www.apple.com/feedback/
-
I have two email accounts on my MacBook Pro and iPhone that I have been using for a few years. My phone works perfectly for both accounts. Now one of my email accounts on the MacBook says the outgoing server is Offline? How can I fix that so that both accounts send and receive email. I have tried various things in settings but nothing seems to work.
Hi Rochdr,
You can use the following article to help you address this issue with your mail account in OS X:
OS X Mail: Troubleshooting sending and receiving email messages
http://support.apple.com/kb/ts3276
Thanks for using the Apple Support Communities. Have a good one!
-Braden -
I have 3 macs. 2 are Lion, but 1 I left Snow leopard so I can access data from my old Quicken Application that doesn't work with Lion. If I move to iCloud, will I no longer be able to access my MobileMe email on the Snow Leopard mac?
What version of word do you have? The TS3938 sounds like it's a PowerPC app- written for an old architecture that is no longer supported in Lion. If this is the case, your files are fine- you just need a newer version of word that will run in Lion in order to open them. The newest version (2011) should be readily available anywhere, and has worked fine for me ever since I switched to Lion on release day....
-
I have all emails turned off in account preferences and I'm still receiving updates on discussions. It's annoying. Please make them stop.
Go to your profile page.
Select the Notifications tab clear out anything that shows there.
Go back to your profile
In the Actions box select Preferences
Select the Email Notifications Preferences tab
Set the values as you like
Go back to your profile
In the Actions box select Manage Email Notifications
delete any that show
Steps 4 & 7 seem to be the same, they are not. Make sure you do all of the steps. -
Hi, I've used four different Groups when emailing for the past few years, and suddenly they have stopped working. I've tried creating new Groups but that doesn't work either. I haven't changed or done anything different and it is driving me mad......can anyone help, please?!
Thanks for that information!
I'm sure I will be calling AppleCare, but the problem is, they charge for the phone calls don't they? Because I don't have money to be spending to be on the phone with a support service.
In other things, it seemed like the only time my MacBook was working was when I had Snow Leopard without the 10.6.8 update download that was supposed to be done to prepare for OS X Lion.
When I look at the information of my HD it says that I have 10.6.8 but that was the install that it claimed to have failed and caused me to restart resulting in all of the repeated problems.
Also, because my computer is currently down, and I've lost all files how would that effect the use of my iPhone? Because if it doesn't get fixed by the time OS 5 is released, how would I be able to upgrade?! -
I have Mac OSX snow leopard , which I think is OSX10.6.8. I did as I was told and migrated to icloud having advised that not all devices were up to the Lion. I now find that the mobile phone receives the emails and so does the ipad, but not my desktoptop. I have received an email from apple saying I would be able to receive the emails. Why cant I? What do I have to do ? Surely it is not necessary to buy another upgrade???
10.7.2 is required for full iCloud facilities, but you can still use your email. In theory you should be able to access your email in Mail at the same server settings, but this hasn't worked for everyone: you can set Mail up manually to access your iCloud email:
Entering iCloud email settings manually in Snow Leopard or Leopard
Once migrated, your mail will also be available at http://icloud.com -
My email account blocks the verify now hyperlink when I try to click and open to verify my apple ID. I have tried to copy and paste in the browser window, but that doesn't work either.
Have you tried accessing the email from another computer, device, email client or web browser?
-
I have macromedia fireworks mx on an old laptop and want to install it on my new laptop were can I find the download file
Here is a copy of the error
This means : Installation failed.
Verification of the Adobe Software failed
The product you want to install is no valid Adobe product and seems to be falsified.
HUgo
Op 29-aug.-2014, om 23:42 heeft Jeff A Wright <[email protected]> het volgende geschreven:
I bought Photoshop CS6 Extended(education edition) for Mac. Now ik want to install it on my (new) macbook. I have the product code and serial number. I receive an error code: may be a false copy. How can I install this program?
created by Jeff A Wright in Downloading, Installing, Setting Up - View the full discussion
Hugo please turn off your e-mail signature.
If your serial number is listed as being valid at http://www.adobe.com/ then I would recommend obtaining a fresh copy of the installation files. You can find details on how to locate your serial number at Find your serial number quickly - http://helpx.adobe.com/x-productkb/global/find-serial-number.html.
To download a fresh copy of the installation files please see Download CS6 products.
Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6685617#6685617
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Downloading, Installing, Setting Up by email or at Adobe Community
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0. -
I bought Pages ages ago using an iTunes account that no longer works as the email address has been closed down. How can I now update my Pages app, if it asks me to sign in using this now defunct email address?
All apps are always tied to the account from whaich they were purchased and will always have to be updated using that account.
Just because the e-mail account is shut down, has nothing to do with the itunes account. Why did you create a new account? Why not just change the e-mail associated with the old account? -
I just updated my pages and now it won't load. This is on my iPad. The first version which has the latest version it can have 5.1 or something like that. I am trying to open a document and am worried that if I uninstall and reinstall I will lose all my documents
I just uninstalled it and am waiting for it to reinstall. I sincerely hope that I have not lost everything that I worked on so hard. Now that mobile me is gone, I have not been able to go between devices to transfer things. I was merely trying to take a document I had worked on and open it in pages, but it said my version was too old. When I updated, it wouldn't load. Now I cannot do anything. I hope that the reinstall fixes it without losing everything. Please advise!!! Yes, I am in panic mode.
-
I can't seem to get my iMac (late 2009 model) into automatic sleep mode. If I manually put it into sleep I don't have any issues.
I used to solve the issue by running "PleaseSleep" application but that doesn't work anymore since Lion. I now want to fix the underlying problem.
I'm not running any weird background processes and in my energy saver settings I've tagged "put the hard disk to sleep when possible:, "allow power button to put computer to sleep" and "automatically reduce brigthness". All pretty standard.
Is there anyone who can give me some pointers ?Today I solved the same problem for my iMac running Snow Leopard. See https://discussions.apple.com/thread/3008791#15947706. The method may help you, too.
For me it was the DynDNS Updater preventing my iMac from automatically entering sleep mode.
To my knowledge the cause of this sleep problem can only be a peripheral device or a process. So I suggest to first unplug all peripherals and test whether that's the cause. If not, I suggest to terminate one process after another and to test automatic entering of sleep mode after each. Start with user processes; continue with system process if necessary.
At least that's the way I found the offending process. Fortunately, I was able to change the configuration of that process to allow again automatic entering of sleep mode.
Good luck! -
i used to open many tabs in the same page and i move from one to other by mouse but since3 two days the tabs open in the same page normaly but i can't move from one to other when i clik with mouse on any tab it don't open/ do u have any solve for this
Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
*Do not click the Reset button on the Safe mode start window or otherwise make changes.
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
Maybe you are looking for
-
Schedule lines should not change 3 weeks time from MRP date
Hi Is there any specific customisation required to get following results in case of schedule lines. 1) MRP should not change/adjust the already send delivery schedule lines which are lying within 3 weeks time from MRP date 2) System should not allow
-
my ipod touch no longer syncs with itune.
-
Creative cloud keeps asking me to license my software and then it asks for a serial number
it keeps asking me to license my software and then it asks for a serial number, i do not have a serial number with creative cloud just a order number what do I do?
-
2011 macbook connecting to projector
i have an 2010/2011 Macbook Pro and I'm trying to connect it to a project. Last time I connected to a projector it just started up (2011) this time I have been trying to connect it and nothing happens. below is my Displays screen where you'll see th
-
Hi There, I am thinking about starting a small web design business just as a kind of "productive hobby" for now. My question is this... Can I create the website on iweb, save it as a File (instead of publishing to .me), and then send it to the custom