Problem with blocking of messages to be sent on the form
I have a PHP form 5 required fields, 3 of which are in the drop-down menus.
To validate fields, I created the following tables:
required fields
$required is array ('username', 'subscriber_name', 'report_type', 'rpt_delivery_frequency', 'look_back_time');.
Empty array all the missing fields
$missing = array();
Then the variables $_POST are treated:
foreach ($_POST as $key = > $value) {}
$temp = is_array ($value)? $value: trim ($value);
If (empty ($temp) & & in_array ($key, $required)) {}
return ($manquant, $key);
}
{} else if (in_array ($key, $expected))
${$key} = $temp;
}
}
So, if a required field is empty its name attribute is added to the $missing table. (This code is a bit beyond my knowledge of PHP; I received this book PHP Solutions).
Text fields were easy to validate. The drop down menus were a bit difficult. After some trial and error, I came with a validation code to my drop-down menus. Here is the validation code for the type of report:
<? PHP
If (sizeof ($report_type) == 0 | in_array ($_POST ['report_type'], $report_type_choices)) {}
} else {? >}
< p > < span class = "WARNING" > please select a report Type. </span > < /p > <? PHP
}
? >
It works in what concerns the validation if a valid election has been selected in the dropdown in the report Type field. The user must select Standard or custom to not get the warning text. THE PROBLEM is that if nothing has been selected, I have the warning text BUT even when the MAIL IS SENT.
Of course, mail is sent because the report_type required field is not empty, it has the value "select_one".
But how can I stop mail from being sent to less Standard or customized are selected for the report Type field?
If you have a value = "", it will work. " However, if there is no value attribute in the
Tags: Dreamweaver
Similar Questions
-
problems with sending/receiving messages
For the last two weeks my iphone 6 s and my son 6 more have had problems with sending/receiving messages in the texts of the Group and regularly comes to a voicemail. Messages are not at all or you may be able to receive them. Then last night on a group text between me and another user of iphone and a droid user messages were not all going through and an 'unknown' appeared on the screen of the droid users as if this person has attempted to send a message to our group text but nothing was there. Iphone users could not see it. This morning - messages still does not go through the text of the group or on one. Any ideas?
SMS texts are a function of carrier
Control an upgrade of the carrier
If the droid user used an iPhone before having them their registration number
Also check with support carrier technique
-
I keep having a problem with this error message. Firefox is already running but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system. I tried everything the internet suggested but it continues to wreak havoc... Help, please... John.I cannot give other details that it has become very annoying
See "hang out":
-
seems I'm not the only one having problems with safari after update 9.3 cannot follow the links. Safari blocks. hope it gets fixed quickly. jaa shooting allows to follow the link, but the Web page is not out of good old days. any oher ideas?
The 'list' of relevant articles that I know, they are now
-You can read about the problems in the present statutes and possibly find workaround solutions, particularly in the last
Apple iOS suspension 9.3 updates for older devices, work on activation fix | IVous
Apple launches new version of iOS for iPad users 9.3 2 affected by bricking bug | 9to5Mac
If you are unable to activate your iPad 2 (GSM model) update to iOS 9.3 - Apple Support
Leave a post by: ChitlinsCC
-
Problem with sending a message when you're connected via Wi - Fi
Hello. Still getting used to my Dext (owned it for about 4 days). I noticed this morning that I can't send the mail from the POP3 account, I set up on my Dext when I am connected via Wi - Fi - when I try I get an "authentication failure". When I disable Wi - Fi email sends end. There is no problem with webmail - send although I am connected to the Wi - Fi or 3 G network.
Anyone know how to send the mail while POP3 on the Wi - Fi network? Thanks in advance...
Understand the problem - port incorrect settin for mail server outgoing. Changed to 587 according to some messages that I saw during a search - that did the trick!
-
No response to my problem
I have a problem with activating photoshop elements 14 upon activation of the server responses me that I am not bound. I start again and I still got the same message!
!
-
Having a problem with Windows Live Mail lock up shortly after the start.
Having a problem with Windows Live Mail lock up shortly after the start. When I start the Task Manager to end the process, it sometimes freezes and the only way to solve the problem is to disconnect which forces the profile to close. Assuming a corrupted profile, I followed the instructions of Windows support to fix a corrupted profile and copied all the files except ntuser.*. When I try to paste them into the new user profile (all profiles are admins), I get the error message asking if I want to leave to proceed. When I click on continue, all THE files in the profile block "corrupt" to the new one, including ntuser.*, that I was not choosing. Why? If the files are rewritten empty? Tried 3 times, same result. Please notify.
I think I found it! I went in the Windows Live Forum and found a thread that looked like my problem. He suggested going to msconfig and take off Live Mail list start. I couldn't find it on the list, but the top element was "" default EXE"something of an unknown manufacturer. I took it out of the startup list, and Live Mail works again! Thanks for your help!
-
There is a problem with Adobe Acrobat/Reader. If this is the case, please exit and try again. (0:104)
I get this message when I try to open a PDF from a Web page link. When I open the task on the Applications tab Manager, I don't see that adobe Acrobat/Reader listed at all.
How can I solve this problem?
I can answer my own question.
After typing "patch" and read a few threads, I found out how to fix it.
-
Problem with El Captain (5.1.7 server) and the management of permissions
Hello world
I have a big problem with our Mac Mini Server (El Captain) and the server program.
In recent weeks, the server didn't give the permissions of a folder.
for example:
Mr. X had permission to read and write to a folder.
Mr Y too.Mr. X has create a new folder one record something in it.
Mr Y had the permission to read or write to the folder create Mr. x. But he should have.
Or
Mr. X has save a file to a folder
When he opens it again it is write protected and cannot be replaced.
So you have to save under a different name in the same folder.
And every time he save/close the file.
Anyone know what could be the problem?
Thank you
Greetings from the Germany
Chris
My guess:
A few weeks ago someone messed with the permissions on your server and made a mistake. So, you got an inappropriate list ACL (Access Control), which is rampant in the file and must be removed or fixed.
C.
-
Using Firefox 7.0.1; having problems with hotmail. Cannot click on controls at the top of MSG, which is New, reply, delete, etc.. Can click on the same commands @ the bottom of the problem w/no MSG. Also cannot click on Inbox folder once I have access to another folder. All known solutions?
This problem may be caused by the Yahoo! toolbar as scopes as well down and covers the top of the browser window, allowing links in this part of the screen not clickable.
Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).
- Makes no changes on the start safe mode window.
- https://support.Mozilla.com/kb/safe+mode
-
Problems with clicking and scrolling when you are using the mouse in IE
Separated from this thread.
Original title:
Problems with clicking and scrolling when you are using the mouse
I have the same problem. My touchscreen responds but my touchpad and mouse are unable to save a click in IE. I need to reboot to rectify. It seems to be more common when the laptop comes out of fashion 'sleep'. I tried all the steps above, everything is up-to-date.
Hello Fred,.
Thanks for the reply.
I appreciate your efforts to resolve the issue.
I would suggest trying the following methods and check if it helps.
Method 1:
Run the hardware and devices Troubleshooter and check. Please follow these steps:a. press Windows + W keys, type Troubleshooting in the search box and press on Enter.
b. click on 'show all' and then click 'hardware and devices'.
c. click 'Next' and then follow the on-screen instructions.If this does not help, then use method 2.
Method 2:
Start your computer in safe mode and check the number.
Refer to this article:
Start settings for Windows (including safe mode)
http://Windows.Microsoft.com/en-us/Windows-8/Windows-startup-settings-including-safe-modeI hope this information helps.
Please let us know if you need more help.
Thank you
-
Had problems with Windows 8 Pro that I bought after the pre version, seems when I tried to reinstall it, kept getting no configure after installation. So I tried a full install without success. Can you please give some tips to overcome this problem? I lost the back upward with the resettlement, don't know how, but I have a QuadCore intel 9650 memory of 8 GB, 560 GTX GPU, 120 GB SSD. Can I install windows 7 ultimate, but I prefer Windows 8 Pro and don't want to pay for it again.
I suggest you reinstall Windows 7 first, then use your existing Windows 8 Pro key and reinstall Windows 8 Pro from the following link:
You can download it from there and use your product key to upgrade:
http://Windows.Microsoft.com/en-GB/Windows-8/upgrade-product-key-only
You will need to reactivate by phone:
Activation of the phone:
1. press the Windows key + X , and then click run, and then type: slui.exe 4
2. then press the ENTER"" key.
3. Select your "country" in the list.
4. choose the option "activate phone".
5. stay on the phone (do not select/press all options) and wait for a person to help you with the activation.
6. explain your problem clearly to the support person.
-
Someone else has problems with their computer crashing once they have installed the Nik for Photoshop CC filters?
Hi amlportraiture,
Could you please let us know the exact version of Photoshop you're working on, also did you copy the Plugins and move it to the folder Plugins in Photoshop?
And please make sure you have the latest version of Nik Collection Installer on the computer.
Kind regards
Tanuj
-
Problems with Windows 10? How can I reinstall the Fireworks - missing MSVCP100.dll?
First, run the SFC Scan command and try to reinstall Fireworks:
https://support.Microsoft.com/en-in/KB/929833
If you still face, same question,
Uninstall and reinstall Microsoft Redistributable packages versions 2013 and 2012.
Let me know if you need steps.
-
Problem with Cloud - on MacBook pro, when I opened the window CC, all I get is welcome Aps active community. a blue dial spining but nothing else
Hello
I suggest you fine the link below and it will help you.
Does not open App | Wheels of progress turn continuously
Concerning
Maansee
Maybe you are looking for
-
There are an extension on Google Chrome which I love, but is not available on Firefox, so I would like to know if there is a way to use a Chrome extension in Firefox. I have Firefox 8 and that the extension is the only reason why I open Chrome someti
-
Portege M100: USB mouse is crazy
Hello I want to kill them and disable the built-in mouse of my M100 because it is completely crazy.It moves by itself and when I connect a USB mouse and I'm trying to control the cursor, it does not stop the movement. In fact, there is a problem with
-
How to transfer windows mail messages to my gmail account?
I am hoping that someone can help me to access my emails in my windows email account via my gmail account. I went through the whole upward in gmail, but unfortunately he didn't seem to have worked. Thank you very much
-
Reference Dell V313w does not print
First of all I apologize if it is redundant. I spent countless hours scouring the web for answers and have not found anything to solve my problem. I looked in the forums as best as I can, but nothing helped. I'm having a problem with a Dell V313w whi
-
HO NEED DI SAPER SE POSSO AUSWECHSELN ALL'INTERNO DI a RAID5 UN HD SAS 2.5 GRIPS 10 k CON ONE ALTRO DA 15 K SENZA AVERE PROBLEMI. DELL T710 FYTHY4J SERVER HD ST9146803SS URGENTISSIMO