close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Retaining Form Values & From Field Missing..

Thread began 7/22/2013 4:37 am by Andrew Dodd - ADDIGITAL | Last modified 7/24/2013 2:16 am by Andrew Dodd - ADDIGITAL | 1927 views | 9 replies |

Andrew Dodd - ADDIGITAL

Retaining Form Values & From Field Missing..

What's the best way to retain entered field values if the user, for example, gets the captcha wrong or some other validation fails?

I seem to remember somewhere, that if you set the initial value to the value of the form field, this would work.

Also, no matter how I try, I can NOT get the sender name/email address to display in the from field when the email arrives. I also want to send the sender a copy of the mail but the dynamic binding with the senders email address seems not to work.

URL is http://www.timperleymotors.co.uk/contactus.php

If I can get this sorted, I can get paid! Please help!! ;)

Andrew

Sign in to reply to this post

CraigRBeta Tester

Couple of ways you can do it, you can store the field value as a session value, and use this as the default value, but what I prefer to do is add server side validation to the form, then using the server behaviors panel, you can set the field value to the validated form value, which will pre-populate the form when it is submitted incorrectly

Sign in to reply to this post

Andrew Dodd - ADDIGITAL

Thanks Craig, will give that a try.

Do you know why the from field isn't being populated? Or anybody for that matter?

Cheers
Andrew

Sign in to reply to this post

Jason ByrnesWebAssist

you are using an invalid name for the email address form element.

<input name="Email Address" type="text" required="required" id="femail" placeholder="Your Email Address" tabindex="2" autocomplete="on" value="" size="40">


Spaces are not valid for form element names. Form Elements names should conform to the following rules:
1) Only use Alpha numeric characters.
2) The only exception is the underscore
3) The first character of the name must be a letter.

Sign in to reply to this post

Andrew Dodd - ADDIGITAL

Universal Email not sending now..

Hi Guys,

So now, I have a nicely validated form, that keeps it's values BUT:

When the form is submitted, the page loads itself again (with a blank page) instead of sending the mail and going to thankyou.php as it should.

Behaviour can be seen at http://www.timperleymotors.co.uk/contactus_new.php and the php page is attached.

I'm sure I'm missing something very simple and have been staring all afternoon. It's now 1027pm BST and I'm tired. Not sure whether it's the validations or Universal Emails that's causing the problem.

Also noticed that Firefox and Safari are throwing the following error out "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol"

Could one of you kind folks have a look as another pair of eyes and help me out?

TIA
Andrew

Sign in to reply to this post

CraigRBeta Tester

I can't see the attachment, (but if you have provided this, apologies, I have had a problem with not seeing attachments and not sure if WA have fixed this for me yet)

Sign in to reply to this post

Andrew Dodd - ADDIGITAL

Hi Craig,

I'll try again. Many thanks for your help.

Andrew

Attached Files
contactus_new.php
Sign in to reply to this post

CraigRBeta Tester

ok, got it, i will take a look when I am back at my desk.

in the meantime, try adding the following to line 1, it may help

<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>

Sign in to reply to this post

Andrew Dodd - ADDIGITAL

Hi Craig,

Thanks for that - that was my next step - but fortunately, I found it!

I changed the name of the Universal Email template from Blank to Blank Copy - but forgot to upload it! DOH

Told you I was tired :)

Thank you so much.

Andrew

Sign in to reply to this post

Andrew Dodd - ADDIGITAL

This post has been deleted.

loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...