easiform and personalized message?

Mike, I’ve read the ways in which I can apply your code to have people’s names inserted on to the thank you page with easiform. I am not versed in code at all , just follow instructions like a monkey…so I have the following question…

How do I get to the config file to add: $ACTSUCCESS = 0;.

After that I think I just insert the following code

<?php $s_m = 'Thanks ' . $f['first_name'] . ' ' . $f['surname'] . ', your message has been sent to us. The e-mail address you used was: ' . $f [email]; echo $s_m; ?>

into a Markup item.

I really don’t know how to change any of the above code to suite my needs so I’ll tell you what they are:

have the code just insert the first name of the person filling out the code.

My name field just has “name” on it.

thanks so much in advance showing me the way!


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Set ‘Act on success’ to ‘Reload page’.

If the message has been sent then easiForm will set the variable
$easiMail_success and set to true.

If you want to use the variables set in the form then name would
become $f[‘name’], see example below:

<?php if ($easiMail_success && $f['name']) { // If the form has been submitted name has a value echo 'Thank you ' . $f['name'] . ' for contacting us.'; } ?>

but… this might be used by making your form page a little more
dynamic, you can trick the form page by creating the thanks page then
making it load if the form is sent, but you do this a little
differently than you would normally, so…

1# Set the easiForm action to Reload on success.

2# Add this in the Before HTML markup of the * form * page (not thanks
page):

<?php if ($easiMail_success) { // If the form has been submitted $thanksTxt = 'Thank you ' . $f['name'] . ' for contacting us.'; // The following will include the thanks page if the form is sent, after the thanks page // has been loaded then script will exit so no more html is processed and the form page // with then not load so you will just see the thanks page. include_once('./thanks.php'); // Name of the thanks page here exit; } ?>

3# Now on the * thanks * page add a markup item somewhere and paste
this code into it:

<?php echo $thanksTxt; ?>

Make sure you put a space before and after the * actual markup item *
in step 3, then select the markup item and the spaces each side,
select a style as if styling some text (This will style the text
printed by php).

Now when the form is sent and all is well the thanks page will load
and stop the rest of the form page from loading, so you get the thanks
page when the URL is for the form page. You will see what I mean when
you do this.

Mike

On Mar 21, 2008, at 7:13 PM, shybuckstudio wrote:

Mike, I’ve read the ways in which I can apply your code to have
people’s names inserted on to the thank you page with easiform. I am
not versed in code at all , just follow instructions like a
monkey…so I have the following question…

How do I get to the config file to add: $ACTSUCCESS = 0;.

After that I think I just insert the following code

<?php $s_m = 'Thanks ' . $f['first_name'] . ' ' . $f['surname'] . ', your message has been sent to us. The e-mail address you used was: ' . $f [email]; echo $s_m; ?>

into a Markup item.

I really don’t know how to change any of the above code to suite my
needs so I’ll tell you what they are:

have the code just insert the first name of the person filling out
the code.

My name field just has “name” on it.

thanks so much in advance showing me the way!


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

BTW, if copy pasting then
watch wordwrap on the comments ‘//’
like ‘has been
submitted…’
or you will get errors!


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

OK mike,

I’ve followed your instructions: I’ve set reload on success,
2. I’ve added the code before html markup of the form page.
3.I put in a space before the markup item and after . Dropped in the code for that. Selected the markup and spaces and styled it.
I then make the thanks page php.

This is what I get when I view the form page on line:

Parse error: syntax error, unexpected T_STRING in /home/shybucks/public_html/work/form.php on line 19

what am I doing wrong?

Here’s the site if you want to take a peek,

www.shybuckstudios.com/work


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Best to send me the FW file (No resources just FW file), it’s probably
quicker to find the problem that way, it’s probably the commented text
wrapping, if you send me it now I can have a quick look before I go out.

Mike

On Mar 21, 2008, at 8:21 PM, shybuckstudio wrote:

OK mike,

I’ve followed your instructions: I’ve set reload on success,
2. I’ve added the code before html markup of the form page.
3.I put in a space before the markup item and after . Dropped in
the code for that. Selected the markup and spaces and styled it.
I then make the thanks page php.

This is what I get when I view the form page on line:

Parse error: syntax error, unexpected T_STRING in /home/shybucks/
public_html/work/form.php on line 19


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

once again Mike please send me the email to send to

thanks


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I have sent it to your address but if you click on my user name you can see an address where you can send it to.


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Mike I sent it to the address you sent to me


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Melanie,

I have sent the file back to you * with quite a few changes *… anyway they are all explained in the reply I sent, basically the problem with the php parse error was the comments wrapped onto a new lines as I explained above.

Hope it all goes OK for you now.


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Mike, thanks so much for cleaning things up and showing me the way! I’ll study what you’ve done and hopefully understand. I wish there existed a class of some sort on Freeway …instead of bumping around in the dark!
thanks again!


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Here’s the thing Mike, underneath the form which you so kindly whipped into shape, sits a graphic jpeg passthrough. How do I get this to show up underneath the form?


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

You can get information on the Softpress knowlagebase:
http://www.softpress.com/kb/

There are quicktime movies on some areas of using Freeway from the
Freeway moments page:
http://www.softpress.com/support/freewaymoments.php

As far as the action is concerned there is a tutorial on the
easibase.com website
Tutorial: easiForm With Freeway
that takes you through each step of how to and where to add the
actions, this would have prevented some of the errors you made with
the actions implementation on your form.

I hope to add a couple of quicktime movies of the PHP easiForm process
and form building eventually when I get the time.

Hope the changes I made do what you want, I never checked the form but
it should be fine.

Good luck

On Mar 21, 2008, at 11:32 PM, shybuckstudio wrote:

Mike, thanks so much for cleaning things up and showing me the way!
I’ll study what you’ve done and hopefully understand. I wish there
existed a class of some sort on Freeway …instead of bumping
around in the dark!
thanks again!


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

THANKS MIKE!


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I don’t see an image on the file you sent me… anyway if it is what I
suspect it might be can you make it a page background image for the
form? you could also try selecting the form table and making it a
layer although I feel the form errors might overlap the elements below
if you do the latter.

BTW, I see there is a required value error on submitting the form, on
checking the file I sent you I see I have used the name field twice, I
must have also used it for the email field so you should change the
name of the email field from name to email… do you understand what I
mean?

On Mar 21, 2008, at 11:47 PM, shybuckstudio wrote:

Here’s the thing Mike, underneath the form which you so kindly
whipped into shape, sits a graphic jpeg passthrough. How do I get
this to show up underneath the form?


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Mike I stripped off the image before sending you my file to make it a smaller file to email. This image can not be a page background. I had to select the form element and make it a layer. Is there a better way to do things? This is one reason I did not make it a table. But I see what you mean by the error overlaping the elements.UGH

Yes, the form does not work.Where do I change the name of the email field?


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

If you don’t mind me asking, why could it not be a background image?

To rename the field:
Select the field (second down) and you will see it is called ‘name’ in
the ‘Name’ field of the inspector window, change it to email

Mike

On Mar 24, 2008, at 8:01 PM, shybuckstudio wrote:

Mike I stripped off the image before sending you my file to make it
a smaller file to email. This image can not be a page background. I
had to select the form element and make it a layer. Is there a
better way to do things? This is one reason I did not make it a
table. But I see what you mean by the error overlaping the
elements.UGH

Yes, the form does not work.Where do I change the name of the email
field?


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

In the inspector window I have already this called this email…but the title changes to email1


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

That’s because there is another field with a title of email, just
check through each form element/field and make sure they are named/
titled as they should be.

TBH, it doesn’t really matter what the titles are for easiForm but it
is good to keep them relative to the item they refer to.

On Mar 24, 2008, at 9:14 PM, shybuckstudio wrote:

In the inspector window I have already this called this email…but
the title changes to email1


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

still not working…I’ve named the title of the email firld “email” in the inspector window


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Can you send me the file again please Melanie?


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options