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?

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

  • IP address in the contact forms

    I realized the contact forms created in Muse when e-mailed automatically contains the IP address of the user. Because of the laws on the confidentiality of the data, we do not want the IP address to be transmitted. It's showing us the incoming mail:

    "Von ubermitteltes Formular Web site: www.xxx.de .

    "Visitor IP address: xxx".

    How can we prevent the contact form or email generated to transmit the IP address of the user?

    It's a thing, what you need to do your company is something completely different, if you say here, 'it is not legal. Normally the IP address is very important information to identify the sender.

  • 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

  • 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

  • Emails generated by the Contact form widgets say they come to me rather than the person who generated the email?

    Can I change the emails generated by the Contact forms to say they come from me, to the address of the person who actually generated the request on the contact form? Or is it always automatically a link to my creative cloud account because that's how I'm hosting of Web sites?

    Because they come from you (at least from your account)... This is the account which uses the Web site to send the form to your email, which means that a user visits your Web site can send you this email "SAME" when they have not an e-mail account themselves.

    No, you cannot legialy change the address to theirs... that's a big no, no, in most of the country, but you can and should have a field of 'contacts' on your form that allows people to give you an email or phone number so that you can follow to the top.

    p.s., many people make the mistake of trying to force the contacts to mail in their forms and this offen feedback rounds people in addition to their use if they MUST tell you the color of their underware just to contact you about an offer of sale or the simple question then don't expect to get a large part of your forms.

  • How can I email the contact form outside of Business Catalyst?

    I try to use the Muse and send the contact form, but not use Business Catalyst.  Any suggestions?

    Hello

    You can use your online form, with all other hosts. Please click the link below to see how you can use the webform widget

    Adobe help Muse | Work with the shape of Widgets

    Let me know if you have any question.

  • Problems with the contact form

    Good day to you all,.

    im a total newbie-muse.

    That said: I have some problems with a contact form I've tried to insert into my homepage.

    When I try to download it via ftp to our server muse tells me that there are some problems with the configuration of PHP.

    In addition to the contact form, the site works very well.

    I tried to change the version of php on our server at 5.6, but it still doesn't work.


    Any ideas?

    Thanks in advance and greetings from the Germany.

    You can consult this document: Troubleshooting Muse form Widgets used on the third... | Adobe Community

  • 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?

  • 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

  • Is it is possible to add script in Adobe Muse? I have added the functionality to export file .csv to the contact form

    Is it is possible to add script in Adobe Muse? I have added the functionality to export file .csv to the contact form

    Hi Vicky,

    Yes, you can add scripts customized to a page of muse. To do this, you must go to 'properties-> metadata-> html to head page' or ' object-> insert html.

    - Abhishek Maurya

  • Change 'new form submission' text on receipt of e-mail of the contact form.

    Hello

    One of our clients asked us to change the text that they receive when they receive an email from the contact form.

    It currently says: "new form submission.

    they want to tell him: ' West of the Moon ~ Ayr ~ site survey '


    We tried to change the name of the form, but does not change the object in the email, not the text in the email. Is it possible to do this?

    Hi Richard,

    Please check the php script to which the web form submits to that open with a text editor and change the verbiage you want here.

    PS - You will need to make these changes after each export of Muse as Muse will override them on each export/download.

    - Abhishek Maurya

  • 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

Maybe you are looking for

  • I don't have Keynote

    I have a Macbook to mid-2012 with the latest IOS update (10.11.5). I guess it's supposed to come with Keynote - and I am not eligible for the program to date. I tried to contact the support Apple, but for some reason, they stop to me which is not pos

  • Satellite C660-1st - replacement of the cooling fan

    Hello I have a Toshiba Satellite C660-1st. Last days a cooling fan start working very noisy doesn t and cleanup help. I bought a new Toshiba L650 but it s not working do not. This laptop cooling fan seems same as from my computer, but the order of th

  • Factory reset - resync?

    Hi, I just did a factory zero due to some problems with updates etc over time and NFS/SMB. (1) now, I started, I can see in volumes there are 34 MB of data, and its 'synchronize' with 5: 00 left, what he does? (2) that essentially will wipe away the

  • How can I activate on labels in the block diagram, but not on the front panel?

    This question may have been asked before, but searching the Forum did not. In LabVIEW 2010, I have 16 indicators of chain on the front panel. I can't have the label for each Visible on the front panel, so I turned it off. But in the block diagram, I

  • Change the screen startup and connection to the new theme

    How can I change the screen startup and connection to a theme driven as something the matrix? I know that some people have created programs that can do this, but prefer to stay with microsoft to do this, if possible.