Contact form - < mx:ComboBox / > submit data and not on label

Hi all

First of all I am new to Flex and looked away from the last two hours now to answer this question. How would you send the data to an e-mail address and not on his label (but retaining the label displayed inside the form)? I found some tutorials on the creation of a general form for example Codes RIA and posted Trap17.com, both are perfect for a general form.

But, lets say if you go with the tutorial and want to add a combo box that allows you to select the person you want to send, without displaying the email address. Say that we release a combobox for the tutorial of RIA Codes , in order to select those enamel's. That's what I have below and it works, just keep putting in the tag in rather than the data (in bold below). "" Certainly, I could just change the labelField="@label" to labelField="@data" , but it will display the e-mail address, which I don't.

Basically, I'm trying to find a way to show the names of individuals and not the email in the contact form, but when you submit the form it would publish the data (containing the email) and not on its label (containing the name of the person), so that the php would show something like this $sendToEmail = $_POST ['recieverEmail']; and send the email. Thanks in advance for your help on this.

<? XML version = "1.0" encoding = "utf-8"? >
" < = xmlns:mx mx:Application ' http://www.Adobe.com/2006/MXML "layout ="vertical"> "

< mx:Style source = "style.css" / >

< mx:Script >
<! [CDATA]
Import mx.events.ValidationResultEvent;
Import mx.controls.Alert;

private function sendMail (): void {}
var _senderName:String = senderName.text;
var _senderEmail:String = senderEmail.text;
var _recieverEmail:String = recieverEmail.text;
var _emailMessage:String = emailMessage.text;
var _emailSubject:String = emailSubject.text;

var evValidMail:ValidationResultEvent = mailValidator.validate ();
var evValidContact:ValidationResultEvent = contactValidator.validate ();
var evValidName:ValidationResultEvent = nameValidator.validate ();
var evValidMessage: ValidationResultEvent = mailValidator.validate ();

If (evValidMail.type is ValidationResultEvent.VALID
& & evValidName.type == ValidationResultEvent.VALID
& & evValidContact.type is ValidationResultEvent.VALID
(& & evValidMessage.type == ValidationResultEvent.VALID) {}
emailService.send ({senderName:_senderName, senderEmail:_senderEmail, recieverEmail:_recieverEmail, emailSubject:_emailSubject, emailMessage: _emailMessage});
}
else {}
resultLabel.text = "There are errors of form";
resultLabel.setStyle ("styleName", "invalid");
}
}

private function emailResult (): void {}
Alert.Show ("please contact us");
clearForm();
}

private function clearForm (): void {}
resultLabel.text ="";
recieverEmail.selectedIndex = 0;
emailSubject.text ="";
emailMessage.text ="";
}
[]] >
< / mx:Script >

"< mx:HTTPService id ="emailService"url ="mail.php"method ="POST"resultFormat ="xml"result =" emailResult () "useProxy ="false"/ >
< mx:EmailValidator id = "mailValidator".
Source = "{senderEmail}" = "text" property
requiredFieldError = "Enter your email" required = "true" / >
< mx:StringValidator id = "contactValidator".
Source = "{recieverEmail}" = "text" property
requiredFieldError = "SΘlectionner contact" required = "true" / >

< mx:StringValidator id = "nameValidator.
Source = "{senderName}" = "text" property
requiredFieldError = "Enter your name" required = "true" / >
< mx:StringValidator id = 'emailValidator '.
Source = "{emailMessage}" = "text" property
requiredFieldError = "Enter your message" required = "true" / >

< mx:Panel height = "401" width = "400" layout = "absolute" title = 'contact us' >
< mx:Form x = "9" y = "10" width = "360" >
< mx:FormItem label = "name:" >
< mx:TextInput id = 'senderName"width ="200"/ >
< / mx:FormItem >
< mx:FormItem label = "Email:" >
< mx:TextInput id = "senderEmail" width = "200" / >
< / mx:FormItem >
< mx:FormItem label = "Contact:" >
"< mx:ComboBox id ="recieverEmail"width ="200"selectedIndex = dataProvider"0"="{contactXMLList}"labelField="@label "/ >
< / mx:FormItem >

< mx:FormItem label = "subject:" >
< mx:TextInput id = "emailSubject" width = "200" / >
< / mx:FormItem >
< mx:FormItem label = "Message:" >
< mx:TextArea id = "emailMessage" height = "130" width = "200" / >
< / mx:FormItem >
< / mx:Form >
< mx:Button label = "Submit" click = "sendMail ()" x = "138" y = "274" / > "
< mx:Label id = "resultLabel" x = "212" y = "276" / >
< / mx:Panel >

< mx:XMLList id = "contactXMLList" >
"< labelrecieverEmail="1 person"data ="[email protected]"/ > ".
" < recieverEmail label ="Person 2"data =" [email protected] "/ > "
" < recieverEmail label ="Person 3"data =" [email protected] "/ > "

" < recieverEmail label ="Person 4"data =" [email protected] "/ > "
" < recieverEmail label ="Person 5"data =" [email protected] "/ > "
< / mx:XMLList >

< / mx:Application >

Your labelField must be set to '@label' to display the

name of the person in the drop-down list, but in your form submission method

you will need to use the ComboBox selectedItem property to extract the

email address of the person who has been selected.

Thus, instead of the line:

* var _recieverEmail:String = recieverEmail.text;

* Have you tried:

var _recieverEmail:String = recieverEmail.selectedItem.@data;

Tags: Flex

Similar Questions

  • Contact form, how to hide text and display the clues?

    I want to create a contact form, using Dreamweaver. In the preview, it looks all right. But when downloading, I have the following problems:

    The "tips" in the boxes are missing, nomatter what browser I use.

    The text "a value is required" (for example) is visible all the time. It should be visible if people enter and leave the box blank.

    And I just saw that he does not respect my fonts either, only in preview mode.

    Overview:

    preview.png

    Downloaded (bad!):

    uploaded.png

    < form id = "form1" name = "form1" method = "post" action = "formmail.php" >
    < span id = "nameTextField" >
    < label for 'name' = > name < / label > < br / >

    < input type = "text" name = "name" id = "name" tabindex = "10" / >
    < span class = "textfieldRequiredMsg" > a value is required. </span > < / span >
    < p > < span id = "emailTextField" >
    < label for 'email' = > Email < / label > < br / >

    < input type = "text" name = "email" id = "email" tabindex = "20" / >
    < span class = "textfieldRequiredMsg" > a value is required. </span > < span class = "textfieldInvalidFormatMsg" > Invalid format. </span > < / span > < / p >
    < p > < span id = "messageTextArea" >
    < label for 'message' = > Message < / label > < br / >

    < name textarea = 'message' id = cols "message" = "75lignes" = "8" tabindex = "30" > < / textarea >
    < span id = "countmessageTextArea" > < / span > < span class = "textareaRequiredMsg" > a value is required. </span > < span class = "textareaMinCharsMsg" > Minimum number of characters not met. </span > < span class = "textareaMaxCharsMsg" > has exceeded the maximum number of < br / >
    Characters. </span > < / span > < / p >
    < label = "submit" > < / label >
    < input type = "submit" name = "submit" id = "submit" value = "Submit" tabindex = "40" / >
    < / make >

    < script type = "text/javascript" >

    <!--

    var sprytextfield1 = new Spry.Widget.ValidationTextField ("nameTextField", "none", {validateOn: ["blur"], hint: "Your name"});

    var sprytextfield2 = new Spry.Widget.ValidationTextField ("emailTextField", "email", {hint: "Your e-mail", validateOn:["blur"]});})

    var sprytextarea1 = new Spry.Widget.ValidationTextarea ("messageTextArea", {minChars:1, maxChars:999, counterType: "chars_remaining", counterId: "countmessageTextArea", validateOn: ["blur"], hint: "Your message"});

    ->

    < /script >

    You download your Spry assets folder and CSS files to your remote server?

    You can provide a link to your problem page?

    Nancy O.

  • I always have problems with my contact form, can someone look at and help me?

    http://www.alpenawebdesigns.com

    When I try to submit my contact form, I get a 404 error something on port 80 (I use port 21) I use Godaddy as a host and this contact form works in another program

    http://www.bayviewdropincenter.org

    can someone look at this and tell me what is the problem?

    Also is it a group of users in the field of Alpena Mi?

    The requested URL /form-to - email.php was not found on this server.  You download the script?

    Also, please take my URL on your footer code.   Thank you.

    
    

    Finally, to validate your code.  You are missing a closing for your header tag.

    http://validator.w3.org/check?verbose=1&URI=http%3A%2f%2Fwww.alpenawebdesigns.com%2Fcontac tus.html

    Nancy O.

    ALT-Web Design & Publishing

    Web | Graphics | Print | Media specialists

    http://ALT-Web.com/

    http://Twitter.com/ALTWEB

    http://ALT-Web.blogspot.com/

  • IPhone 5 C Date and not updated

    Hi, after the last update IOS 9.2 I foud on this date and time are no longer works. Even I set automatic or manual configuration.

    Is this a bug? Is this a hardware problem?

    Please, I beg you. someone who can help me?

    Concerning

    Hey IP5c,

    Welcome to Apple Support communities.

    Information and troubleshooting in the article below should help you to solve the problem with the date and time, do not update correctly on your iPhone 5 c.

    Get help with the date and time on your iPhone, iPad and iPod touch - Apple Support

    See you soon.

  • Help in the merging of data and create mailing labels

    I have a CSV file with three field ("name, envelope" "" = address"and"City ST Zip") and 245 records.

    I have the labels that correspond to seven on a page.

    I have the designed document. I am able to get the fields inserted, but... when I merge, I get the first page with seven the first record labels, the second page with seven second record labels, page 3 with seven third record labels. You get the photos. I want seven different addresses on each page. So... instead of having more to 35 245 pages.

    Is this possible or should I find a way to make my drawing in Word? * sigh *.

    Everyone made the same mistake; you set seven (records) to your InDesign document, are not.

    Create the first instance (upper-left)

    Go to control panel to merge the data and choose multiple records per page.

    It helps to have put guidelines in place for the Visual presentation and I try to keep the total area of my equal fields the number of hole - exactly 2 inches of width, for example.

    Data merge multiple records per page will need the values for spacing from room to room. Integers and guides make easier.

  • Submit form button save only PDF and not send.

    Our school uses a form of discipline paper and my manager asked me to created a PDF version that can be completed and e-mailed to him instead of us fill in by hand.  I've set up the Send button exactly as all the tutorials say.  When I go to test (mailto function is correct in shape), instead of a selection of email client, I get a box "send PDF data under".  At this time, he wants to save the form and the e-mail never sends.  Any ideas on what I am doing wrong?  Thank you very much.

    Thank you all for your comments.  I found my problem.  It turns out that our copy of Adobe Acrobat Pro X has not been updated.  Once our IT Department updated, it worked fine.  Thanks again for looking at my problem.

  • El Capitan 10.11.4. is safe to put up-to-date and not having problems with Adobe Creative Suite?

    I read a lot of problems with the update of the system of El Capitan, the thought of updating scares me. I use Adobe Creative Suite to work, so it is crucial for me that they work perfectly together. Resolved bugs in 10.11.4?

    Every single major and the Mac OS update brings out the horror stories. Which most is caused by systems that are stuck with rubbish like AV software applications Or really worthless, damaging as CleanMyMac, MacKeeper and other apps that garbage (haxies).

    The only real issue I've seen in El Capitan, which was specifically a problem known BONES was that placing old types of fonts directly in the folder/Library/Fonts /, or their activation in place with any font manager would not work. They had to be put into the folder of the user account or activated as a collected police policies. Which has been fixed in 10.11.3.

    Otherwise, I use most of the CC apps every day (primarily Photoshop). Everything works as expected.

  • Cursor takes the form forms only in Internet Explorer and not in google chrome etc...

    I use Windows 7 64 bit and IE 11 on my HP ProBook s 4430. Everytime I open a Web site (for example search Google or even this window where I'm typing this msg) and type text, the cursor shape is changed automatically. Sometimes it is a very simple thin bar and a few moments after, seen with spirals on the subject, it is sometimes very thick bar, sometimes a black square at one end of the slider bar. Interestingly, it does not happen in MS Word or any other software where required to be entered text. I had resettled twice windows after formatting the system volume, but the question remains as it is. I saw scanned with antivirus, MS Security essential, MS Malware and spyware scanner scanners, but nothing was found. Any body help me.

    rks57.

    Thank you very much, Mr. Stanley. First, as suggested by you, I tried to solve the problem by uninstalling and installing Plug-ins (Acrobat Flash Player and Microsoft Silverlight), but did not succeed. Finally, I uninstalled IE 11 and, wow, it worked. It is now very well. There is no change in the shape of the cursor (even in this window, where I am typeing this msg.). But I'm still confused because IE 11 works fine on my PC while the problem happened on my laptop HP ProBook 4430 s only.

    In any case, I'm exteremly sorry for geeting your much time to solve this problem, but it may help others too. Thanks again.

    rks57.

  • Need a way to clear a form on the current page and not the entire form...

    IM new to Adobe Acrobat and worked on the conversion of some of our OmnForm 5.0 form PDF file, I've created a form that contains a button to clear the form.  It works very well!  Now, I created a template in the PDF of the current page and then created a button to spawn a new page of the model.  Creating the page works as well.  The only problem I have is that the clear form button clears the entire form.  I need the key to erase only the current page.

    I'm a relative newbie when it comes to script.  I can understand generally simple scripts when I see them, but to create new groupings still isn't my forte. HE's researching the resetForm method, but it seems that there is no option to move the current page to him? (As I said I am relatively new to java scripts).  If anyone has the directions on how to do it I would be very happy.

    You can use the code that I posted here: http://forums.adobe.com/message/4234483

  • My Contact form does not.

    I have the contact form for models for my site and I need the form must be submitted to my email, but does not work. need help with the website is * Become A model | Photograph of Santana * need help ASAP.

    < div id = "mid_container" class = "container" style = "" opacity: 1; "> < section class ="sub_header_wrapper">"

    < div class = 'container sub_header' >

    < div class = "page_title_wrapper" >

    < h2 style = "do-size: 36px;" Color: #333333; ' > BECOME a MODEL < / h2 >

    < / div >

    < / div >

    < / section > < id article = 'content_section' class = 'full width' >

    < div id = "post-484" class = "post-484 pages status type - post hentry" >

    < div class = "entry-content" >

    < div id = "pl-484" >

    < div id = 'pg-484-0' class = 'Panel-grid' >

    < div id = 'pgc-484-0-0' class = "Panel-mesh" >

    < div id = 'Panel-484-0-0-0' class = 'widget so-Panel widget_text Panel-first-child Panel-last-child' >

    " < div class ="textwidget"> < form id ="form-fm-1"class ="form-fm"action =" http://khristiansantana.com/become-a-model/ "autocomplete = 'on' enctype =" multipart/form-data"method ="post"name =" form-fm-1 "> "

    < fieldset > < legend > BECOME a MODEL < / legend >

    < ul >

    < id li = "fm-point-text-5583e9b180b96" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < label > name < em > * < /em > < / label > < table >"

    "< td > < input id ="text-5583e9b180b96"style =" "width: 300px;" maxlength = "10" name = "text-5583e9b180b96' type = 'text' placeholder =" "/ > < table >

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < id li = "fm-point-text-5583f6d2bd136" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < label > age < em > * < /em > < / label > < table >"

    "< td > < entry id = 'text-5583f6d2bd136" style = "" width: 300px; ' name = 'text-5583f6d2bd136' type = 'text' placeholder = "" / > < table >

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < id li = "fm-point-custom_list-5583ec9e1c0d1" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < label > sex < em > * < /em > < / label > < table >"

    < td > < select id = "custom_list-5583ec9e1c0d1" style = "" width: px; "name ="custom_list-5583ec9e1c0d1">"

    < option value = "0" >... < / option >

    < option value = "1" > female < / option >

    < option value = "2" > male < / option >

    < option selected = "selected" value = "3" > < / option >

    < / select > < input id = "custom_list-5583ec9e1c0d1-list-style" type = "hidden" = 'select' value / > < input id = "custom_list-5583ec9e1c0d1-count" type = "hidden" value = "3" / > < table >

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < id li = "fm-point-text-5583ed50c4267" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < label > country < em > * < /em > < / label > < table >"

    "< td > < entry id = 'text-5583ed50c4267" style = "" width: 300px; ' name = 'text-5583ed50c4267' type = 'text' placeholder = "" / > < table >

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < id li = "fm-point-text-5583ed6f790e3" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < label > height < em > * < /em > < / label > < table >"

    < td > < input id = "text-5583ed6f790e3" style = "" width: 300px; ' name = 'text-5583ed6f790e3' type = 'text' placeholder = "6"(182 Cm) "/ > < table >"

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < id li = "fm-point-text-5583edb5041c1" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < label > physics < / label > < table >"

    "< td > < entry id = 'text-5583edb5041c1" style = "" width: 300px; ' name = 'text-5583edb5041c1' type = 'text' placeholder = "" / > < table >

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < id li = "fm-point-text-5583ee6598680" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < label > bust < em > * < /em > < / label > < table >"

    "< td > < entry id = 'text-5583ee6598680" style = "" width: 300px; ' name = 'text-5583ee6598680' type = 'text' placeholder = "" / > < table >

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < id li = "fm-point-text-5583ee805c8f5" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < label > size < / label > < table >"

    "< td > < entry id = 'text-5583ee805c8f5" style = "" width: 300px; ' name = 'text-5583ee805c8f5' type = 'text' placeholder = "" / > < table >

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < id li = "fm-point-text-5583efeed03d6" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < label > hips < / label > < table >"

    "< td > < entry id = 'text-5583efeed03d6" style = "" width: 300px; ' name = 'text-5583efeed03d6' type = 'text' placeholder = "" / > < table >

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < id li = "fm-point-text-5583f00af1b51" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < label > hair color < / label > < table >"

    "< td > < entry id = 'text-5583f00af1b51" style = "" width: 300px; ' name = 'text-5583f00af1b51' type = 'text' placeholder = "" / > < table >

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < id li = "fm-point-text-5583fc3476a9d" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < eye color label > < / label > < table >"

    "< td > < entry id = 'text-5583fc3476a9d" style = "" width: 300px; ' name = 'text-5583fc3476a9d' type = 'text' placeholder = "" / > < table >

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < id li = "fm-point-text-5583fc475bf4f" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < label > size < / label > < table >"

    "< td > < entry id = 'text-5583fc475bf4f" style = "" width: 300px; ' name = 'text-5583fc475bf4f' type = 'text' placeholder = "" / > < table >

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < id li = "fm-point-text-5583fc486b8ed" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < label > dress size < / label > < table >"

    "< td > < entry id = 'text-5583fc486b8ed" style = "" width: 300px; ' name = 'text-5583fc486b8ed' type = 'text' placeholder = "" / > < table >

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < id li = "fm-point-text-55840084538bf" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < label > languages < em > * < /em > < / label > < table >"

    < td > < input id = "text-55840084538bf" style = "" width: 300px; ' name = 'text-55840084538bf' type = 'text' placeholder = 'English' / > < table > "

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < id li = "fm-point-textarea-558400a58872a" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < label > experience < / label > < table >"

    < td > < textarea id = "textarea-558400a58872a" style = "width: 500px;" height: 300px; "name ="textarea-558400a58872a"placeholder =" "> < / textarea > < table >

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < id li = "fm-point-textarea-558400ccc3262" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < labels information > Additional < / label > < table >"

    < td > < textarea id = "textarea-558400ccc3262" style = "width: 500px;" height: 300px; "name ="textarea-558400ccc3262"placeholder =" "> < / textarea > < table >

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < id li = "fm-point-file-558400f22ba17" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < label Photos > download < em > * < /em > < / label > < table >"

    < td > < input name = "MAX_FILE_SIZE" type = "hidden" value = "10240000" / > < entry id = "file 558400f22ba17" name = "file 558400f22ba17", type = "file" / > < table >

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < id li = "fm-point-file-558401058af95" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < label Photos > download < em > * < /em > < / label > < table >"

    < td > < input name = "MAX_FILE_SIZE" type = "hidden" value = "10240000" / > < entry id = "file 558401058af95" name = "file 558401058af95", type = "file" / > < table >

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < id li = "fm-point-file-5584011b3ebed" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < label Photos > download < em > * < /em > < / label > < table >"

    < td > < input name = "MAX_FILE_SIZE" type = "hidden" value = "10240000" / > < entry id = "file 5584011b3ebed" name = "file 5584011b3ebed", type = "file" / > < table >

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < li = id ' fm-point-file - a 55840129603, 1 ">

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < label Photos > download < / label > < table >"

    < td > < input name = "MAX_FILE_SIZE" type = "hidden" value = "10240000" / > < entry id = 'file - 55840129603 a 1' name = 'file - 55840129603 a 1' type = 'file' / > < table >

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < id li = "fm-point-file-5584012a08d1f" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < label Photos > download < / label > < table >"

    < td > < input name = "MAX_FILE_SIZE" type = "hidden" value = "10240000" / > < entry id = "file 5584012a08d1f" name = "file 5584012a08d1f", type = "file" / > < table >

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < id li = "fm-point-file-5584012adfc0c" >

    < table >

    < tbody >

    < b >

    < style td = "" width: 200px; "> < label Photos > download < / label > < table >"

    < td > < input name = "MAX_FILE_SIZE" type = "hidden" value = "10240000" / > < entry id = "file 5584012adfc0c" name = "file 5584012adfc0c", type = "file" / > < table >

    < /tr >

    < / tbody >

    < /table >

    < /li >

    < /ul >

    < div > < input name = "fm_form_submit" type = 'submit' class = "submit" id = "fm_form_submit" value = "Submit" / > < / div > < / fieldset >

    < input id = "fm_nonce" name = "fm_nonce" type = "hidden" value = "2d222408d0" / >

    < input id = "fm_id" name = "fm_id" type = "hidden" value = "1" / >

    < input id = "fm_uniq_id" name = "fm_uniq_id" type = "hidden" value = "fm-55d0b168b07a9" / >

    < input id = "fm_parent_post_id" name = "fm_parent_post_id" type = "hidden" value = "484" / >

    < / form > < / div >

    < / div >

    < / div >

    < / div >

    < / div >

    < / div >

    < / div >

    <! - #post-#->

    < / section > < / div >

    First try this tutorial into 3 parts.

    ALT-Web Design & Publishing: sensitive Contact form with 3.2 Bootstrap and PHP (part 1)

    Nancy O.

  • Detailed Contact form send an e-mail on the desktop but not Mobile

    I have a Contact form detailed on my Desktop and Mobile versions of my site. The form sends end from the office, but the same shape are not sent from the mobile website. The enamel used is linked to my domain name. Any idea on what I'm missing?

    Thanks in advance.

    You are right. That would have helped completely. I sort of fixed this problem.

    I created the form this time, starting with the standard and added contact form widget additional fields, I thought that I needed the form detailed for widget and now it works. Strange.

  • safe for html contact form php script

    What follows is a format of the basic form that I use and style with css to match the colors of Web site, etc. However, I'm looking for advice on a script php with captcha or other security that will make this form work and send emails to an e-mail address. My site is hosted on GoDaddy - Linux CPanel hosting economy and the php script they have on their server do not work with economy hosting on CPanel.

    PHP script or tutorial link would be greatly appreciated. Thank you.

    < name of the form = "form1" method = "post" action = "" >

    < ol >

    < li >

    < label for 'Name' = > name < / label >

    < input type = "text" name = "Name" id = "Name" >

    < /li >

    < li >

    < label for 'Email' = > Email < / label >

    < input type = "text" name = "Email" id = "Email" >

    < /li >

    < li >

    < label for 'Phone' = > phone < / label >

    < input type = "text" name = "Phone" id = 'Phone' >

    < /li >

    < li >

    < label for 'Message' = > Message < / label >

    < textarea = 'Message' id = 'Message' name > < / textarea >

    < /li >

    < li >

    < input class = "submit" type = "submit" name = "Submit" id = "Submit" value = "Submit" >

    < /li >

    < /ol >

    < / make >

    Try this tutorial into 3 parts.

    ALT-Web Design & Publishing: sensitive Contact form with 3.2 Bootstrap and PHP (part 1)

    Nancy O.

  • Contact forms

    Hi guys,.

    I'm having a problem trying to create a working contact form using dreamweaver. I'm not very good with code, so I downloaded a model of contact form on internet. This contained HTML, CSS, and Javascript files. I opened the Index HTML file in dreamweaver. I was looking for a field to change to change where the email will be sent to you once the form has been sent. However, I couldn't find any area where this could be done. For this reason, I tried the code you need to add to this function. From my findings, I've added $email_to = ""mailto:[email protected]";. " I added this on the same piece of code below the send key. However, when I apply this HTML code for my application, it does not work. Can someone help me with this?

    Thank you

    Liam

    [Edited by moderator e-mail address]

    liamt49731828 wrote:

    OK no problem, don't thank you again.

    First of all, you must understand how correct and stable to return data to an email address is using a language like asp server, php - php is the most popular language to use.

    Second, you have to study and know what server language is supported by your Web host.

    If it's php then also know if the host allows you to send mail using the php 'mail' feature.

    Once you have this information, you are able to move forward.

  • The JavaScript calendar date and access date incompatible field!

    I need some help here! My form has two fields where the user enters a beginning date and an end date. These dates are then used in a WHERE clause to retrieve all records in these dates. The problem is that access does not recognize dates and shows not all records. If I remove the WHERE clause, all records are displayed. I tried to change the area of access to the text, use the input mask, etc. nothing works. Any ideas?

    This is the code for the entry form;

    < html >
    < head >

    < style type = "text/css" >

    {.ds_box}
    background-color: #FFF;
    border: 1px solid #000;
    position: absolute;
    z index: 32767;
    }

    {.ds_tbl}
    background-color: #FFF;
    }

    {.ds_head}
    background-color: #333;
    color: #FFF;
    do-family: Arial, Helvetica, without serif.
    font size: 13px;
    make-weight: bold;
    text-align: center;
    letter-spacing: 2px;
    }

    {.ds_subhead}
    background-color: #CCC;
    Color: #000;
    do-size: 12px;
    make-weight: bold;
    text-align: center;
    do-family: Arial, Helvetica, without serif.
    Width: 32px;
    }

    {.ds_cell}
    background-color: #EEE;
    Color: #000;
    font size: 13px;
    text-align: center;
    do-family: Arial, Helvetica, without serif.
    padding: 5px;
    cursor: pointer;
    }

    {.ds_cell:hover}
    background-color: #F3F3F3;
    } / * This code hover does not work for IE * /.

    < / style >


    < style type = "text/css" >
    <!--
    . Style8 {do-family: Tahoma}
    ->
    < / style >

    < style type = "text/css" >
    <!--
    {body
    background-image: url();
    background-repeat: no-repeat;
    left margin: 0px;
    margin-top: 0px;
    }
    a: link {}
    text-decoration: none;
    }
    a: visited {}
    text-decoration: none;
    }
    a: hover {}
    text-decoration: none;
    }
    a: active {}
    text-decoration: none;
    }
    . Style9 {make-size: 12px}
    .style10 {do-size: 14px}
    .style11 {do-size: 16px}
    {.style12}
    do-size: 18px;
    make-weight: bold;
    }
    ->
    < / style >
    < / head >

    < title > manna Prime - Kit < /title > Report

    < body >

    < table class = "ds_box" cellpadding = "0" cellspacing = "0" id = "ds_conclass" style = "" display: none; ">"
    < tr > < id td = "ds_calclass" >
    < table > < /tr >
    < /table >

    < script type = "text/javascript" >
    <!-<! [CDATA]

    Project: Date Picker Dynamics (DtTvB) - 2006-03-16
    The script featured on JavaScript Kit - http://www.javascriptkit.com
    Code to start...
    Set the initial date.
    var ds_i_date = new Date();
    ds_c_month = ds_i_date.getMonth () + 1;
    ds_c_year = ds_i_date.getFullYear ();

    Get the item by Id
    function ds_getel (id) {}
    return document.getElementById (id);
    }

    Download the left and the top of the element.
    function ds_getleft (el) {}
    var tmp = el.offsetLeft;
    El = el.offsetParent
    {while (El)}
    tmp += el.offsetLeft;
    El = el.offsetParent;
    }
    return tmp;
    }
    function ds_gettop (el) {}
    var tmp = el.offsetTop;
    El = el.offsetParent
    {while (El)}
    tmp += el.offsetTop;
    El = el.offsetParent;
    }
    return tmp;
    }

    Output element
    var ds_oe = ds_getel ('ds_calclass');
    Container
    var ds_ce = ds_getel ('ds_conclass');

    Output control
    var ds_ob = ";
    function ds_ob_clean() {}
    ds_ob = ";
    }
    function ds_ob_flush() {}
    ds_oe.innerHTML = ds_ob;
    ds_ob_clean();
    }
    function ds_echo (t) {}
    ds_ob += t;
    }

    var ds_element; Text element...

    var ds_monthnames =]
    'January', 'February', 'March', 'April', 'May', 'June ',.
    'July', 'August', 'September', 'October', 'November', 'December '.
    ]; You can translate it into your language.

    var ds_daynames =]
    'Sun', 'Mon', 'Mar', 'Sea', 'Thursday', 'Sun', 'Sam '.
    ]; You can translate it into your language.

    Model calendar
    function ds_template_main_above (t) {}
    "return ' < table cellpadding = '3' cellspacing ="1"class ="ds_tbl">"
    + "< tr >".
    + ' < class td = "ds_head" style = "" cursor: pointer "onclick =" ds_py (); "> & lt; & lt; < table > '
    + ' < class td = "ds_head" style = "" cursor: pointer "onclick =" ds_pm (); "> & lt; < table > '
    + ' < class td = "ds_head" style = "" cursor: pointer "onclick =" ds_hi (); ' colspan = "3" > [close] < table > '
    + ' < class td = "ds_head" style = "" cursor: pointer "onclick =" ds_nm (); "> & gt; < table > '
    + ' < class td = "ds_head" style = "" cursor: pointer "onclick =" ds_ny (); "> & gt; & gt; < table > '
    + "< /tr >".
    + "< tr >".
    + '< td colspan = "7" class = "ds_head" >' t + '< table >.
    + "< /tr >".
    + "< tr >";
    }

    function ds_template_day_row (t) {}
    return '< class td "ds_subhead" = >' t + '< table > ";
    Set the width in CSS, XHTML Strict 1.0 does not have the width for her property.
    }

    function ds_template_new_week() {}
    return '< /tr > < tr > ";
    }

    function ds_template_blank_cell (colspan) {}
    return ' < td colspan = "' + colspan + '" > < table > '
    }

    function ds_template_day (d, m, y) {}
    return ' < class td = "ds_cell" onclick = "ds_onclick (d + ',' + m + ',' + y + ')" > ' d + '< table > ";
    Set the width of the line of the day.
    }

    function ds_template_main_below() {}
    return '< /tr > ".
    + '< /table > ';
    }

    It is inspired by calendar...
    function ds_draw_calendar (m, y) {}
    Start by removing the output buffer.
    ds_ob_clean();
    Here, we will make the header
    ds_echo (ds_template_main_above (ds_monthnames [m - 1] + ' ' + y));
    for (i = 0; I < 7; i ++) {}
    ds_echo (ds_template_day_row (ds_daynames [i]));
    }
    Make a date object.
    var ds_dc_date = new Date();
    ds_dc_date.setMonth (m - 1);
    ds_dc_date.setFullYear (y);
    ds_dc_date. SetDate (1);
    If (m == 1 | m == 3 | m == 5: m == 7 | m == 8 | m == 10: m == 12) {}
    days = 31;
    } Else if (m == 4: m == 6 | m == 9 | m == 11) {}
    days = 30;
    } else {}
    days = (y % 4 == 0)? 29: 28;
    }
    var first_day = ds_dc_date.getDay ();
    var first_loop = 1;
    Beginning of the first week
    ds_echo (ds_template_new_week());
    If Sunday is not the first day of the month, make an empty cell...
    If (first_day! = 0) {}
    ds_echo (ds_template_blank_cell (first_day));
    }
    var j = first_day;
    for (i = 0; I < days; i ++) {}
    Today is Sunday, a new week.
    If this Sunday is the first day of the month,
    We already have a new line for you.
    If (j == 0 & &! first_loop) {}
    New week!
    ds_echo (ds_template_new_week());
    }
    Do a rank of this day here!
    ds_echo (ds_template_day (i + 1, m, y));
    Is not first loop more...
    first_loop = 0;
    What is the next day?
    j ++;
    j % = 7;
    }
    Make the footer
    ds_echo (ds_template_main_below());
    And we will show...
    ds_ob_flush();
    To scroll in the display.
    ds_ce. ScrollIntoView();
    }

    Function to display the calendar.
    When the user clicks on the date, it will define the content of t.
    function ds_sh (t) {}
    Set the element to set.
    ds_element = t;
    Make a new date and set the current month and year.
    var ds_sh_date = new Date();
    ds_c_month = ds_sh_date.getMonth () + 1;
    ds_c_year = ds_sh_date.getFullYear ();
    Draw schedule
    ds_draw_calendar (ds_c_month, ds_c_year);
    To change the position correctly, we must show first.
    ds_ce.style.display = ";
    Move the calendar container!
    the_left = ds_getleft (t);
    the_top = ds_gettop (t) + t.offsetHeight;
    ds_ce.style.left = the_left + 'px ';
    ds_ce.style.top = the_top + 'px ';
    To scroll in the display.
    ds_ce. ScrollIntoView();
    }

    Hide the calendar.
    function ds_hi() {}
    ds_ce.style.display = 'none ';
    }

    Moves to next month...
    function ds_nm() {}
    Increase the current month.
    ds_c_month ++;
    We have past December, back to next year.
    Increase the current year and set the month of January.
    If {(ds_c_month > 12)
    ds_c_month = 1;
    ds_c_year ++;
    }
    Redraw the calendar.
    ds_draw_calendar (ds_c_month, ds_c_year);
    }

    Moves to the previous month.
    function ds_pm() {}
    ds_c_month = ds_c_month - 1; Impossible to use the dashboard dashboard here, getting the invalid page.
    We stayed in January, let's go back to the previous year.
    Decrease the current year and set the month of December.
    If (ds_c_month < 1) {}
    ds_c_month = 12;
    ds_c_year = ds_c_year - 1; Impossible to use the dashboard dashboard here, getting the invalid page.
    }
    Redraw the calendar.
    ds_draw_calendar (ds_c_month, ds_c_year);
    }

    Moves to next year...
    function ds_ny() {}
    Increase in the current year.
    ds_c_year ++;
    Redraw the calendar.
    ds_draw_calendar (ds_c_month, ds_c_year);
    }

    Moves to the previous year...
    function ds_py() {}
    Reduction in the current year.
    ds_c_year = ds_c_year - 1; Impossible to use the dashboard dashboard here, getting the invalid page.
    Redraw the calendar.
    ds_draw_calendar (ds_c_month, ds_c_year);
    }

    The format of the release date.
    function ds_format_date (d, m, y) {}
    2-digit month.
    M2 = '00' + m;
    M2 = m2.substr (m2.length - 2);
    day 2-digit.
    D2 = '00' + d;
    D2 = d2.substr (d2.length - 2);
    AAAA-MM-JJ
    return m2 + "/" + d2 + "/" + y;
    }

    When the user clicks on the day.
    function ds_onclick (d, m, y) {}
    Hide the calendar.
    ds_hi();
    Set the value of it, if we can.
    If (typeof (ds_element.value)! = 'undefined') {}
    ds_element. Value = ds_format_date (d, m, y);
    Maybe we want to define the HTML in there.
    } else if (typeof (ds_element.innerHTML)! = 'undefined') {}
    ds_element.innerHTML = ds_format_date (d, m, y);
    I don't know how we should view, only he warn the user.
    } else {}
    Alert (ds_format_date (d, m, y));
    }
    }

    And this is the end.

    []] >-->
    < /script >

    < are method = "post" action = "kit_report2.cfm" >
    < class p = 'style8 style12' > Kit Report < /p >
    < class p = "style8 style11" > report date span < /p >
    < p > < span class = 'style8 style11' > start date:
    < label >
    < Input onClick = "ds_sh (this); "name = 'Start' readonly ="readonly"value =" "style =" "cursor: text" / > ""
    < / label >
    End date:
    < label >
    < Input onClick = "ds_sh (this); "name = 'End' readonly ="readonly"value =" "style =" "cursor: text" / > ""
    < / label >
    </span > < span class = "style8 style10" > < label > < / label >
    </span > < span class = "style8 style9" > < label > < / label >
    </span > < span class = "style8" > < label > < / label >
    </span >
    < label > < / label >
    < /p >
    < p >
    < label >
    < name of entry = "Submit" type = "submit" id = "Submit" value = "Run report" >
    < / label >
    < /p > < / make >
    < / body >
    < / html >

    This is the query that is used on the page of action;

    < cfquery datasource = "manna_premier" name = "kit_report" >
    SELECT SaleDate,
    TerritoryManager,
    Distributor,
    DealerID,
    Variable
    Orders
    WHERE SaleDate BETWEEN #FORM. Start # AND #FORM. End #.
    ORDER BY SaleDate
    < / cfquery >

    ... The problem is that access does not like

    dates and not all records will display.

    ...

    WHERE SaleDate BETWEEN #FORM. Start # AND #FORM. End #.

    Use one of the available functions to convert the form field values in a date object. Learn more about the CreateODBCDate function

    WHERE DateColumn BETWEEN #CreateODBCDate (form.start) #...

    and the CFQueryParam tag

    WHERE DateColumn BETWEEN

    ....

    I tried to change the access to the text field

    No, do not use 'text' to store dates. Dates should always be kept as DateTime.

  • Date and time stamp - first stamp to finalise and make a new stamp date for updates?

    Is it possible that I can make the final stamp-date and not record again when recording? Thus, for example, user enter form data, then records which produces the date stamp. The user then decides to make changes to the form and saved again. By doing this, she made a new dater and replaces the old one. Is there a way to prevent this? So that I can have an original date stamp, then a stamp update? Any help would be great. Need this ASAP, it's for work. Thank you.

    This is the code that I currently use under the Javascript of WillSave event:

    var f = this.getField ("DateStamp");
    f.Hidden = false;
    f.Value = "saved to:" + util.printd ("mmm dd, yyyy ')"(, nouveau Date());

    var j = this.getField ("DateStampTime");
    j.Hidden = false;
    j.Value = util.printd ("HH: mm: tt", new Date());

    You can add a condition that checks if the value of the field is empty, and only in this case he fills. Like this:

    If (f.valueAsString == "'") f.value = "" saved on: "+ util.printd (" mmm dd, yyyy ", new Date()" '); "

Maybe you are looking for

  • The upgrade of dv6835nr (dv6000 motherboard) motherboard

    Hello people. I had a perfectly working dv 6835nr computer for four years now and for some reason, it has overheated went crazy. Now, it does not start. It's pretty 4 years old lappy with C2D 1.86 Ghz with 3Gib of ram and HDD 250 with a former > Inte

  • M177 LaserJet MFP Pro: Printer screen locked up

    Machine and Control Panel powers without problem, but the screen does not respond when you try to make a selection. I turned off, unplugged, restarted, etc.  Any ideas?  Thank you.

  • How to print on both sides so that the pages run sequentlly?

    I printed a document of declarant 1-97 on printing odd pages only options.   I then put the pages in the printer and pressed even pages only and it prints 1, then 94?  Can you help me how to print so that the pages run consecutively?

  • Virus Trojan:Dos\Alureon.C

    Is there a process to remove this virus and get my laptop working again. I ran microsoft removal tools (MSE) and he found 5 infected files. Deleted 4 of them, the said Trojan:Dos\Alureon.C to removed manually. The tool provided no support to do this.

  • HP G6 series: what change the CMOS battery buy for my HP G6 Series?

    I need to replace my CMOS battery. My laptop is a HP G6. When I search the product number sometimes like a G6-1b60us. One new replacement CMOS battery I see listed on eBay are for HP G6-2000. This CMOS battery works for my HP?  I see those listed tha