Personalized Thank You Message

After submitting a form I would like only the persons name to be
dynamically inserted in the thank you page where the rest of the
message I guess will be created in FW. What’s the best way to go
about this? I’m not opposed to getting geeky if need be. I’m
currently looking at Hotscripts under form processing but haven’t
found anything yet.

Todd


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

Hi Todd,

You can do this using easiForm
http://easibase.com/freeway/freeway_form.php

1# set the following in the easiForm_config file:

$ACTSUCCESS = 0;

This tells easiForm to include the thanks page on success.

2# Make your thanks page and end it with a .php

Lets say you have used two fields for the user to add their first
name and their surname, so…

3# Add an ‘Insert > Markup item’ to the thanks page with the following:

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

You can change the above text to suite your needs. The two variables
must be the same variable/s you use for the user to enter their name,
if you have a ‘title’ menu for Mr, Mrs, Miss etc. then you can call
it $f[title] and add that to the above string.

You can do this in a similar manner using any form handling script
you can include the thanks page or you could pass the name values to
the thanks form, I find the include method is a good way to do what
you need.

Hope this helps
Mike

On Nov 2, 2007, at 11:15 PM, Todd wrote:

After submitting a form I would like only the persons name to be
dynamically inserted in the thank you page where the rest of the
message I guess will be created in FW. What’s the best way to go
about this? I’m not opposed to getting geeky if need be. I’m
currently looking at Hotscripts under form processing but haven’t
found anything yet.


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

Hi Mike,

easiForm looks great, nice job, I’ve put it on the short-list of options. I’m interested in your last statement, though. I’m currently using Tim’s Feedback Form action so are you saying the process and code are basically the same? I’ve been experimenting with it but no luck yet. I assume the success page markup $ACTSUCCESS = 0; is included in the Form Setup? If someone could walk me through it with regard to that action I would appreciate it. I keep getting a parse error: syntax error, unexpected T_VARIABLE.

Todd

On Nov 3, 2007, at 1:57 AM, Mike B wrote:

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

You can do this in a similar manner using any form handling script

you can include the thanks page or you could pass the name values to

the thanks form, I find the include method is a good way to do what

you need.

On 3 Nov. 2007, 1:27 pm, Todd wrote:

options. I’m interested in your last statement, though. I’m currently
using Tim’s Feedback Form action so are you saying the process and
code are basically the same? I’ve been experimenting with it but no
luck yet. I assume the success page markup $ACTSUCCESS = 0; is
included in the Form Setup? If someone could walk me through it with
regard to that action I would appreciate it. I keep getting a parse
error: syntax error, unexpected T_VARIABLE.

Todd

Can you preview the offending page into BBEdit or another text editor, copy all the code, and then paste it at Pastie? It’s likely that you are making a simple mistake, but it’s hard to tell from the error message you quote here.

http://pastie.caboo.se/pastes/new

Paste it as HTML, that should get the syntax highlighting close enough for government work.

Walter


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

Hi Todd,

To be honest I think you might need to edit the script that the action makes, I haven’t delved into it.

$ACTSUCCESS = 0; refers to the variable that controls what easiForm does on success, 0 = include, 1 = redirect or 2 = just load the form page again, this variable does not relate to any other form script.

Regards
Mike

On Nov 3, 2007, at 2:26 PM, Todd wrote:

Hi Mike,

easiForm looks great, nice job, I’ve put it on the short-list of options. I’m interested in your last statement, though. I’m currently using Tim’s Feedback Form action so are you saying the process and code are basically the same? I’ve been experimenting with it but no luck yet. I assume the success page markup $ACTSUCCESS = 0; is included in the Form Setup? If someone could walk me through it with regard to that action I would appreciate it. I keep getting a parse error: syntax error, unexpected T_VARIABLE.

Todd

On Nov 3, 2007, at 1:57 AM, Mike B wrote:

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

You can do this in a similar manner using any form handling script
you can include the thanks page or you could pass the name values to
the thanks form, I find the include method is a good way to do what
you need.


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

Walter, I’m on my way to the airport but I’ll do this later today. I basically understand how this works using Mike’s easiForm but what I’m confused about is how (or if it’s possible) - using Tim’s action - I pass the variable(s) to the success page using the example code Mike posted earlier. How does the below markup from the success page tie into the form results?

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

Mike, I kinda figured $ACTSUCCESS = 0; was for your form only but I took a shot anyway. ; )

Thanks to both of you,

Todd

On Nov 3, 2007, at 12:13 PM, waltd wrote:

Can you preview the offending page into BBEdit or another text editor, copy all the code, and then paste it at Pastie? It’s likely that you are making a simple mistake, but it’s hard to tell from the error message you quote here.

It’s possible to do this with Forms to Go (I have the PHP version) –
you can put placeholders of form fields in the results page to
personalize the response. I made an example here:
http://www.thebigerns.com/freeway/workbench/formy/

I’m currently having trouble with how Mac FF is displaying the page,
but I think that is unrelated to the script. The page validates fwiw.

On Nov 3, 2007 11:18 AM, Todd wrote:

Walter, I’m on my way to the airport but I’ll do this later today. I
basically understand how this works using Mike’s easiForm but what I’m
confused about is how (or if it’s possible) - using Tim’s action - I pass
the variable(s) to the success page using the example code Mike posted
earlier. How does the below markup from the success page tie into the form
results?


Ernie Simpson – Freeway 4 Pro User – http://www.thebigerns.com/freeway/


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

Hi Ernie,

I don’t have FTG but I’ll have a look. Having another option is
always good. I know I could of had this done already with easiForm or
FTG but I’m trying to figure out how to do it manually for the
benefit of my php education.

Thanks,

Todd

On Nov 4, 2007, at 12:09 AM, Ernie Simpson wrote:

It’s possible to do this with Forms to Go (I have the PHP version) –
you can put placeholders of form fields in the results page to
personalize the response.


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

Walter, I’m not getting the error on the success page any longer. Using Mike’s example php I get the message but - no surprise - the variables aren’t being passed because it’s not tied into Tim’s action. Now, can I even do this with the action or do I need to approach it some other way?

Here’s a demo form:

Form <http://anoptic.com/form.html>
Success <http://anoptic.com/success.php>

Todd

On Nov 3, 2007, at 12:13 PM, waltd wrote:

Can you preview the offending page into BBEdit or another text editor, copy all the code, and then paste it at Pastie? It’s likely that you are making a simple mistake, but it’s hard to tell from the error message you quote here. Paste it as HTML, that should get the syntax highlighting close enough for government work.

On Nov 4, 2007, at 10:46 AM, Todd wrote:

Walter, I’m not getting the error on the success page any longer.
Using Mike’s example php I get the message but - no surprise - the
variables aren’t being passed because it’s not tied into Tim’s
action. Now, can I even do this with the action or do I need to
approach it some other way?

Here’s a demo form:

Form http://anoptic.com/form.html
Success http://anoptic.com/success.php

Todd

I can’t see any of the PHP code when I view your Success page. (No
surprise, that’s the way that PHP works.) Can you please preview into
a text editor (so you can see the real source code) and paste that at
Pastie? Then I can see what you see, and tell you how to proceed.

Walter


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

My mistake. <http://pastie.caboo.se/113951>

Todd

I know what you mean. Look at how using Freeway has slowed my own
HTML/CSS education. :slight_smile:

Todd wrote:

I don’t have FTG but I’ll have a look. Having another option is
always good. I know I could of had this done already with easiForm or
FTG but I’m trying to figure out how to do it manually for the
benefit of my php education.


Ernie Simpson – Freeway 4 Pro User – http://www.thebigerns.com/freeway/


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

Can you show the page that posts the form? I don’t see any of the
form processor code here, and I don’t have the Action here to make a
test page.

Thanks,

Walter

On Nov 4, 2007, at 1:02 PM, Todd wrote:

My mistake. http://pastie.caboo.se/113951


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

<http://pastie.caboo.se/113954>

A demo form page <http://anoptic.com/form.html>

Todd

On Nov 4, 2007, at 12:09 PM, Walter Lee Davis wrote:

Can you show the page that posts the form? I don’t see any of the
form processor code here, and I don’t have the Action here to make a
test page.

Okay, then may I see the content of form-go.php?

I think that’s the missing link, then.

Walter

On Nov 4, 2007, at 1:16 PM, Todd wrote:

http://pastie.caboo.se/113954

A demo form page http://anoptic.com/form.html

Todd


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

<http://pastie.caboo.se/113959>

Todd

On Nov 4, 2007, at 12:23 PM, Walter Lee Davis wrote:

Okay, then may I see the content of form-go.php?

I think that’s the missing link, then.

Todd,

There is something I can see that probably doesn’t help for a start off:

You are using $f[‘fullname’] and $f[‘email’], but this array naming
reference was for easiForm and not what you are now using, your full
name field is called ‘Name’ so you would probably need to use $Name

I am rushing around at the moment and have not much time to look
through in detail but I am sure Walter will come up with more.

Hope this helps
Mike


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

Ah-hah. I used the id name of the element by mistake. Thanks Mike.

Todd

On Nov 4, 2007, at 12:32 PM, Mike B wrote:

You are using $f[‘fullname’] and $f[‘email’], but this array naming

reference was for easiForm and not what you are now using, your full

name field is called ‘Name’ so you would probably need to use $Name

Sometime around 4/11/07 (at 19:32 +0100) Mike B said:

your full
name field is called ‘Name’ so you would probably need to use $Name

Note also that PHP is case-sensitive: “name” is not the same as “Name”.

k


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

I’m resending this because I’m not sure if it made it through to other email subscribers like myself, which it didn’t. It was sent immediately after Walter’s reply below 2 days ago but never showed up in my box. I also never received Keith’s reply to this thread either and just happened to catch it because I visited the web-based list. Thanks Keith.

If this is a redundant post I apologize. Here it is again Walter, just in case.

<http://pastie.caboo.se/113959>

Todd

On Nov 4, 2007, at 12:23 PM, Walter Lee Davis wrote:

Okay, then may I see the content of form-go.php?

I think that’s the missing link, then.