Hi guys! I need some help. I have done successfully a PHP contact form on my website but after testing it many times and got some problems I found that the PHP easiForm actions manual is not clear about setting values on PHP easiform element like the “your name”, or “your email”, for example.
One of the tests I did was sending an email with just a first name and it went through, but the worse case was sending an e mail with an incomplete email address like “yourname.com” or “yourname@” and it also went trough an I received it?!! My question is: How can I set a value in PHP easiform element order so people must to enter first and last name and also a complete email address?
Firstly you cannot have a field name as “your name”, the tutorial
states that a space needs to be replaced with an underslash so you
could have “your_name”.
The email field needs to be named “email” and not “your email”.
To make any fields required you need to enter the field names in the
‘Required’ field of the easiForm action, so if you had two fields that
need to be required items and these where named “your_name” and
“email” then the required field in the easiForm action would need to
contain: “your_name,email” (without the ").
Or you can download an in depth PDF about forms in Freeway and using
them with the easiForm actions from here:
HTH
On Dec 17, 2010, at 7:28 AM, Marcus Do Carmo wrote:
Hi guys! I need some help. I have done successfully a PHP contact
form on my website but after testing it many times and got some
problems I found that the PHP easiForm actions manual is not clear
about setting values on PHP easiform element like the “your name”,
or “your email”, for example.
One of the tests I did was sending an email with just a first name
and it went through, but the worse case was sending an e mail with
an incomplete email address like “yourname.com” or “yourname@” and
it also went trough an I received it?!! My question is: How can I
set a value in PHP easiform element order so people must to enter
first and last name and also a complete email address?
Thanks for your answer. However, I do have the required field the way you mention as “your_name” and “your_email”. I have just forgot to mention it. The problem is that I have read and revised both easiform manuals, the basic one and the depth and couldn’t find and explanation on how to set values for these…any ideas?
So you are saying someone sent the message with the form set up and
the users email address was allowed through with an incomplete email?
if this is the case can you send me the FW site file so I can take a
look please. Just the FW site file, no resources or other files.
I am popping out now and will not be back until later so as soon as I
get back I will take a look at the file.
On Dec 17, 2010, at 8:19 AM, Marcus Do Carmo wrote:
Hi Mike,
Thanks for your answer. However, I do have the required field the
way you mention as “your_name” and “your_email”. I have just forgot
to mention it. The problem is that I have read and revised both
easiform manuals, the basic one and the depth and couldn’t find and
explanation on how to set values for these…any ideas?
Mike, you’re completely right. Even though I have “your_name”, the other required must be only “email” and I had as “your_email”. As soon as I changed that problem disappeared. I have just sent an e mail using the form with an incomplete email address and it was denied till I correct it. That’s good. Thanks. On the other hand I still have that question on how to make people enter both “first” and “last” name in order to send an email.
Ok. Do you need me to send you the actual FW file or just the URL? The URL is www.plusartgraphics.com
You can for example create two fields named: firstname, name or
first_name and surname, let us say you have used first_name
It is as simple as:
Name one: first_name
Name the second: surname
In the required fields type: first_name,surname,email
Reupload to server
HTH
On Dec 17, 2010, at 8:32 AM, Marcus Do Carmo wrote:
Mike, you’re completely right. Even though I have “your_name”, the
other required must be only “email” and I had as “your_email”. As
soon as I changed that problem disappeared. I have just sent an e
mail using the form with an incomplete email address and it was
denied till I correct it. That’s good. Thanks. On the other hand I
still have that question on how to make people enter both “first”
and “last” name in order to send an email.
Ok. Do you need me to send you the actual FW file or just the URL?
The URL is www.plusartgraphics.com
Hi Mike,
I sent the file through yousendit. Sorry. Its’ kind of a big file (97 MB) and couldn’t send it by email. But it is all working now
Thanks for the idea you gave me to include a new field for surname. Even though I’ve been working as a graphic designer for 30 years now, I’m really a newbie as web designer…
What I did was to include a button with a hiperlink set to javascript to go back to contact form, but I don’t think this is fine. The best way would be this success page close and go back to main page.
If you want to do this you could by adding another action, put an
instance of the ‘Timed redirect’ action on the success page and set
the timer to 3 seconds.
HTH
On Dec 17, 2010, at 9:02 PM, Marcus Do Carmo wrote:
Hey Mike,
a quick question:
Is there a way to set the success page to close automatically after
a couple of seconds and go back to home page?
Thanks,
Thanks Mike for your help again! That’s a good tip!
Hi Dave, thanks for the tip. Actually I have seen that option you say more frequently on websites than the timed redirect, but the thing is that a success page looks kind of empty and I though redirecting would be a better option. On the other hand you made think I should research more and may include something else on the success page besides the regular navigation with the links. Or the regular “Thank You! Your email was sent successfully” is fine?
Is that a normal practice to add links to external pages I find useful and interesting, for example Softpress, some friend’s blogs, etc? Is is good or not?