Use of box for the contact form

Hello

It was after a recent thread I posted.

I need to be able to control the following code by using a checkbox control. I.E. once a user click on the check box, and then submit this php is executed, if the user check box and then the PHP can't (for example it is not because it is intended to be displayed to the CSV format)

Here is the code I have so far, say that the name of the box is "Baranof".

If (isset($_POST['submit'])) {}

If ($_POST ['submit'] == "Submit")

{

$errorMessage = "";

if (empty($_POST['name']))

{

$errorMessage. = "< li > you forgot enter name! < /li > ";

}

if (empty($_POST['email']))

{

$errorMessage. = "< li > you forgot to enter an email address! < /li > ";

}

$varName = $_POST ['name'];

$varEmail = $_POST ['email'];

if (empty ($errorMessage))

{

$fs = fopen("mydata.csv","a");

fwrite ($fs, $varEmail. ", " . $varName. "\n");

fclose ($fs);

}

}

}

Any help would be appreciated.

See you soon

Tom

This give a try.

To find:

if($_POST['submit'] == "Submit")

Replace:

if(isset($_POST['mailCheck']))

Tags: Dreamweaver

Similar Questions

  • Change of destination for the Contact form email

    Hi all

    I configured my portfolio page and was delighted to learn that you could add a form of contact rather than having to reveal your email address in the world. It is just an issue.


    The email address that I use for my Adobe ID is not my main job email, I use a secondary address. Whenever I created the contact form he began to send emails to my secondary address, when in fact, I want that they arrive in my Inbox from hauptwerk.


    I changed my Adobe ID to my primary address to see if it works, but no joy. emails are always landing in the wrong Inbox.

    My question: is some way you can change your email address for portfolio Adobe so that submitted emails a contact form come in a different Inbox?

    Thank you

    Angus

    Hey Angus! You can change the e-mail address that you want to use by following these steps:

    1. place the cursor on the contact form and click on the pencil icon that appears in the upper left corner

    2. click on customize

    3. then click on the Options tab of the form

    4 change email address

    5 valve

  • What system use Muse to make the contact form widget work?

    Hello

    I'm a graphic designer working with a coder to create a new website using Muse. My coder was asked what Muse system uses to make the widget of the contact form.  Looking at the code of the page looks like ASP dot net and when the user clicks the button the form data is sent to a script called "FormProcessv2.aspx". If so what version?  (for example, ASP 1.0 or 2.0 or 3.0) Muse use "dot net" or ".NET" or similar in the documentation? If so then would you say what version (1.0 or 2.0)?

    Can someone help me with these questions?

    Thank you very much

    Emma

    It is unclear what the URL/code page you look at? Muse does not ASP. Muse uses PHP for form processing and relies on PHP sendMail to send the form as an e-mail information.

  • Attach text Yes/No boxes in the Contact form

    How can I add text to a contact form which will be yes/no boxes that go hand in hand? For now I have questions in plain text format, but since they are not part of the contact form, I do not think this information we will roll to the e-mail that I receive when someone clicks on the submit button.

    Yes, I figured out how to add a checkbox for the widget field and changed "label of the box" or not. But I want to know how to ensure that the question associated with the YES / no checkboxes should be included in the notification of form submission. I guess a text box gross will not be included in the notification of form submission, so is it possible to add text without a field of text associated with a contact form?

  • Is it possible to add a 'Call' button for the contact form in the mobile layout? How?

    I want to add a 'call' button to my contact form that will automatically appear in the Dialer of the person ready to call the phone number. Possible? And how to set up? Thank you.

    Just type the phone number in the control of hyperlink (without punctuation or spaces) and Muse will do the rest.

  • No text box for the ADF form the input text.

    Hi all

    Im trying to create a form of ADF that can send data to a table. Ive never done this in a tutorial and it seemed pretty simple. Now, when I run the project page comes up with any type of data. Is there a solution to this?

    Screen 3.pngscreen 4.png

    Drag and drop the Insert to create the data to the form control.

    a descent of the project area click on create the text of the button Shows.You Enter input data and click on submit.

    I have tried.it worked fine

  • I just uploaded my site. But more often with success, for one thing: there is an error message on the contact form. "The server has encountered an error." It's pretty generic, so I don't know why. I checked my page, everything looks good. Ideas?

    I just uploaded my site. But more often with success, for one thing: there is an error message on the contact form. "The server has encountered an error." It's pretty generic, so I don't know why. I checked my page, everything looks good. I understand that the authorized "bug" before using the Contact form only with the catalyst has been fixed, so it must go through the fine. Ideas?

    Please consult this document:

    https://forums.Adobe.com/docs/doc-3581

    Thank you

    Sanjit

  • Image verification is received no error on the Contact form

    I get an error when you try to submit the contact form on my new Web site. It was built in Muse and is hosted in Business Catalyst. I use the Captcha of BC but get this error "error: an error has occurred." The image verification failed. If you think this is incorrect, please contact your administrator system or go back and submit the form. "I tried to resubmit the form several times, but continue to make the same mistake. The URL is www.gilbertsongaragedoors.com/contact.html. Help, please! I checked the settings on the screen in Muse, but everything seems to be correct. I'm not very familiar with Java script therefore am not able to check for errors there. The site was built using a Musegrid.com template. All my other forms seem to work well.

    Hi Shannon - the problem persists? I have sent the form and it was as expected.

    Thank you

    Mihai

  • The contact form question

    Recently created a new site, but the contact form is back with errors when downloading.

    1 WARNING

    PHP mail can be disabled or misconfigured web server. These forms can not send email. Contact your Web host or administrator of the Web site on the correct configuration of PHP mail.

    • I checked the site to another host and it works fine,
    • The host of to this Web site is responsible is nearly host
    • I'm currently in talks with support here but not get anywhere quickly.
    • I looked on the forum found pieces of the info, but nothing to solve this problem.
    • I've updated the nearly host php to version 5.6

    Can anyone help?

    Kind regards

    Grant

    Hey Grant,

    Please refer to the troubleshooting doc for the widget of forms used on third party widgets: Troubleshooting Muse form used on the servers of third party Widgets

    If we run the diagnostics, the results we get are:

    Kind regards

    Akshay

  • How to remove the email field in the contact form

    Hello

    I have a problem with the contact form widget must. When I import the widget on the site, I can't delete the email from the contact form field. How can I delete? By pressing the delete key, nothing happens, click on the blue icon appears select required, it won't let me...

    Any help on how to remove the e-mail form would be great.

    Hi Brad,

    Thanks for coming back. Yes by using other forms solves the problem, but the widget is so quick and easy. Pitty this field cannot be deleted.

    See you soon

  • Please make more options in the contact form. He is now based. I need checkbox and much more.

    I'm trying Adobe Muse for 10 days now and it works well and the professional.

    It is very surprising that the contact form is so basic, no box, no button, nothing only a small or a big box.

    I think a lot of site are under construction in action by primair let a potential customer to fill out a form.

    This allows to have a beautiful site without a beautiful shape, like drinking a good wine to drink in a cup of coffee.

    Hello

    With Adobe Muse CC 20141, reCaptcha and checkbox field can be added to forms.

    Please install our latest update to try out these new features.

    Release notes | Adobe Muse CC

    Thank you

    Sanjit

  • My customer is having a serious problem with the Contact form Widget

    My Client is to have a serious problem with the Contact form Widget that I can't seem to figure out how to fix.

    I created a website for a client and inserted a widget of Contact form on the "Contact us" page Whenever someone uses the form, e-mail receive my client shows my e-mail address as the sender. So when they "meet" the email, the response is sent to me and not the person who sent the original message. This creates a major problem in that I get flooded with answers e-mail while my client's potential customers go without a response.

    When I look at ' Site Manager > email system > Workflow information > e-mail address on the site administration Console, it displays my e-mail information. This is what needs to be changed?  If this is the case, what needs to be placed in this field for the email address of my client receives presents information email senders in the field "from".  My client wants to be able to click on reply and the message sent to the right side. They would be very angry if should be cut and past shippers Correo electronico of the body text on all the contacts they receive.

    Their feeling is that if I can't find a way to make the contact form works as it should, then there is no need for them.

    Can someone help me understand this? I really don't want to disappoint my first client.

    Congratulations for your first customer! =>

    Looks like you can have your email in places where your customers email should be.

    Here are the places you need to change your e-mail address.

    First adjust the answering of your web form is your customer email. Screenshot: http://screencast.com/t/YWiZZ30E0jE and http://screencast.com/t/u4t69anTLR

    Second set Emails to come your clients e-mail system. Site management > system email > set default "from" e-mail. Screenshot: http://screencast.com/t/EAr2sfXk

    I always go through each email system and check the e-mail address after you set the default value. I found that it doesn't always change them for some reason any. Note: If you are on a lower to webCommerce plan your list can be shorter than what is shown.

    Make sure that the email you the list of customers is also an email they want in public.

    Also provide information on the TSA that thetrickster888 is good information.

    I hope this helps.

    Lynda

  • Improvement of the contact form

    Hello, I have a contact form work on what will be my new Web site works, but that it's a first attempt is not yet quite right! and I'm not sure how to fix it / if its possible.

    the contact form is here: http://Reese-test.co.uk/contact.php

    (1) when you click "Send query" without any of the fields filled in, you get a pop-up as shown below (Fig 1), which is nice, but if you specify a name and click on "Send request" it takes you to the page contact_form_handler.php and poster simply errors in plain text, as shown below (photo 2).

    Untitled-1.jpgUntitled2.jpg

    What I would ideally is a pop-up for fields 'emailaddress' and the 'queryquestion' and that it will not not to contact_form_handler.php to show the other errors. This does anyone know why it does this?

    I use: gen_validatorv31.js for the validation that I have an example of forms site

    Here's the code for the contact_form_handler.php:

    <? PHP

    $errors = ";

    $myemail = ' [email protected] ';

    If (Empty($_POST['name']) |)

    Empty($_POST['emailaddress']) |

    Empty($_POST['queryquestion']))

    {

    $errors. = "\n error: all fields are mandatory;

    }

    $titlename = $_POST ['titlename'];

    $name = $_POST ['name'];

    $occupation = $_POST ['occupation'];

    $companyname = $_POST ["companyname"];

    $town = $_POST ['city'];

    $postocode = $_POST ['postal code'];

    $emailaddress = $_POST ["emailaddress"];

    $contactnumber = $_POST ['contactnumber"];

    $queryquestion = $_POST ['queryquestion'];

    If (! preg_match ())

    « / ^ [_a-z0 - 9-] + (\. [_a-z0-9-]+)*@[a-z0-9-]+ (-.)] [ a-z0 - 9-] +) * (\. [a - z] {2, 3}) / $i »,

    $emailaddress))

    {

    $errors. = "\n error: invalid email address ';

    }

    If (empty ($errors))

    {

    $to = $myemail;

    $email_subject = "site Web Query: $name";

    $email_body = "You have received a new request".

    "" Here are the details: title \n: \n $titlename name: $name \n Occupation: \n $occupation company name: \n $companyname postal code: \n $postocode Email: $emailaddress \n number of Contact: \n $contactnumber Message: \n $queryquestion ";"

    $headers = "from: $myemail\n";

    $headers. = "reply-To: $emailaddress";

    mail($to,$email_subject,$email_body,$headers);

    Redirect to the page "thank you."

    Header ('Location: thankyou.php "");

    }

    ? >

    < ! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional / / IN" "http://www.w3.org/TR/html4/loose.dtd" > ""

    < html >

    < head >

    Contact form < /title > < title > Manager

    < / head >

    < body >

    <! - this page is displayed only if there is an error - >

    <? PHP

    echo nl2br ($errors);

    ? >

    < / body >

    < / html >


    OK thank you Jon I worked on getting the pop-ups instead - your answer gave me an idea!

    Was the code I used on my contact.php:

    I changed it to the underside

    My contact form now works as it should. Thank you.

    Although I'm a little worried that you can't see my Web site. What browser are you on? I tested it on different PCs on IE, Firefox, Safari and Chrome and all is well, I can see? Stupid question, but you cleared your Cache?

  • TomTom map is wrong in vietnam, pls use google map for the ios update, thank you

    Map of Tomtom is very bad in vietnam, please use Google map for the ios update, thank you

    We are fellow users on these forums, not support nor Apple iTunes.

    TomTom are responsible for their own data to the card, if you have problems with their app and/or cards that you have tried to contact them?

  • h:commandLink action do not call if we use usesUpload = "true" in the af: form

    Hi, good day everyone!

    I use JDEVLOPER 12 c. I have a question invoking commandLink Action if use usesUpload = "true" in the af: form

    Here is the code snippet

    "< h:commandLink value =" "id ="cl4" action =" #{loginBean.logOut} ">

    "< af:image source="/images/SignoutIcon.png "id ="i4"shortDesc =" "/ >

    < / h:commandLink >

    I used [< af:form id = "f1" usesUpload = "true" >].

    If I used usesUpload = "true" in the above form commandLink action does not call and if I delete usesUpload = "true" in the form his job well... that is to say his action invokes.


    Please suggest what the problem with the usesUpload = "true".


    Thanks in advance.


    Kind regards

    Kumar.

    Hi user,

    You can use af:commandImageLink instead of commandLink and it works for me.

    action = "#{loginBean.logOut} icon="/images/SignoutIcon.png"/ >"

Maybe you are looking for

  • Internet Connection Sharing via Intel my Wifi

    Hi, I use Alienware m14x with windows 7 Home premium 64-bitI have just restored my laptop factory. Configure my wifi profile. When I click on share my internet it gives the error that has first of all connect to the internet. I am already connected t

  • Bing dynamic theme has stopped working.

    I had recently installed the Bing Dynamic Theme for Windows 7. The theme worked properly and I loved. However the next day of the day where I had it installed I noticed it sitting on an image instead of change. I went to control panel to check the pe

  • The CP Session in the Temp folder files

    Hello.I found about 17 GB of files in the following folder on my PC:C:\Users\[username]\AppData\Local\TempIn the temp folder, there are a bunch of folders called things like "CP444421652158Session".I am able to delete these files to free up space, or

  • Step 9 10 grille Installation Wizard - run root.sh script problem

    People, Hello. I want to install Oracle 11 g RAC 2 with 2 Virtual Machines (rac1 and rac2 which BONES are Oracle Linux 5.6)and according to the tutorial http://appsdbaworkshop.blogspot.com/2011/10/11gr2-rac-on-linux-56-using-vmware.html The virtual d

  • Download software that I bought the DVD?

    HelloI'm considering buying a version of the Creative Suite in my campus computer store because they offer a special discount. That would mean that I would buy a physical copy of the software DVD. I use a MacBook Air and am therefore without an optic