Developer Support »

Field not showing in email  (See more user questions)

Hi

I discovered what was causing your problem.

You didn't put the "Tour" field in the $field_order_keys array in the
script. You have this:

$field_order_keys =
array('Name_first','Name_last','email','attendees','traveling_companions','address_1','City','State','Zip','phone_home',
'phone_work','bed','casetype','rental','bike_road','rider_height','rider_inseam','rider_gender','rider_job','rider_diet','rider_comments');

Should be this:

$field_order_keys =
array('Tour','Name_first','Name_last','email','attendees','traveling_companions','address_1','City','State','Zip','phone_home',
'phone_work','bed','casetype','rental','bike_road','rider_height','rider_inseam','rider_gender','rider_job','rider_diet','rider_comments');

If you tried it initially with a stock script, you would have got the "Tour"
field showing. Better to get the thing working first, before getting fancy.

If you use a template for the email (NOT to be confused with a template for
the "thank you" message), you don't need to use the $sort_fields option.

I noticed in your script, you had custom HTML at the bottom and you also
enabled the option to use the HTML "thank you message" template. You can't
do both. The HTML you coded into the script will be ignored. Better to
delete it if you are using a template for the "thank you" message (NOT to be
confused with a template for the email).

That's you fixed. Turned out to be a very straight-forward issue but I have
to say I struggled to understand you and thought it was a more complex
issue. In this case you have a form page, a script and a "thank you
message" template. That's the best terminology to use with me!

Best wishes.

Charles Sweeney
https://formtoemail.com
The world's easiest feedback script!

----- Original Message -----
Sent: Tuesday, March 16, 2010 10:36 PM
Subject: Re: FormToEmail-Pro script


Hi Charles, here you go.

I am not using a thank you page but I think I am using the thank you page as
the confirmation page.

The user goes directly to PayPal or back to the original form if they need
to edit it. I should probably allow them to just submit data.

I do get all of the other values returned perfectly which is very cool BTW.
Thanks.

Best,



On 3/16/10 3:31 PM, "FormToEmail.com" <info@formtoemail.com> wrote:

> Hello again,

> Forgot to say, attach your edited script too.
>
> Charles Sweeney
> https://formtoemail.com
> The world's easiest feedback script!
>
> ----- Original Message -----
> Sent: Tuesday, March 16, 2010 10:13 PM
> Subject: Re: FormToEmail-Pro script
>
>
> Thanks Charles. Itıs still not working. Iıve attached the 2 pages and yes,
> I
> am using a template for the confirmation.
>
> Best,
>
>
> On 3/11/10 1:27 PM, "FormToEmail.com" wrote:
>
>> > Hi
>> >
>> > My pleasure to assist.
>> >
>> > I see you have this hidden field in the form:
>> >
>> > <input type="hidden" name="Tour" valuue="Tour of California - May
>> > 2010">
>> >
>> > STOP PRESS...just noticed when reading over this reply. You have
>> > "valuue"
>> > above, instead of "value"!
>> >
>> > You can show that in the confirmation page with ff<Tour> if using a
>> > template. That said, your confirmation page is still a mystery to me.
>> > Are
>> > you redirecting from my script to a confirmation page, or are you
>> > displaying
>> > the confirmation page within the script with the HTML template option
>> > for
>> > the "thank you" message? If the latter, you can use ff<Tour>. (I
>> > didn't
>> > submit the form because of the required fields.)
>> >
>> > You can make a unique PayPal button too, by passing the unique values
>> > in
>> > hidden fields. If doing so, you might be better to skip using a
>> > template
>> > and write the confirmation page directly into the script. At the very
>> > bottom of the script, you will see plain HTML that is used for the
>> > basic
>> > "thank you" message. Just replace that with your own HTML. To show
>> > submitted form values, hidden or otherwise, in the HTML, do this:
>> >
>> > <?php print $_REQUEST['form_field_name'] ?>
>> >
>> > So for example, you could have this line of code in your PayPal button
>> > code
>> > in your "thank you"/confirmation HTML within the script, for the price:
>> >
>> > <input type="hidden" name="amount" value="<?php print
>> > $_REQUEST['price']
>> > ?>">
>> >
>> > You would then put the price on each form in a hidden value, like:
>> >
>> > <input type="hidden" name="price" value="500">
>> >
>> > Any questions, just let me know. Give me as much info as you can about
>> > file
>> > names, redirects (if any), method of displaying "thank you" message
>> > etc.
>> >
>> > Best wishes.
>> >
>> > Charles Sweeney
>> > https://formtoemail.com
>> > The world's easiest feedback script!
>> >
>> > ----- Original Message -----
>> > Sent: Thursday, March 11, 2010 9:03 PM
>> > Subject: Re: FormToEmail script
>> >
>> >
>> > Hi Charles,
>> >
>> > Thanks for the response.
>> >
>> > Go here: http://www. and click on register
>> > now
>> > for
>> > any of the trips. These are the pages that submit the data to the
>> > results
>> > page. Letıs call that a confirmation page.
>> >
>> > I would love to have the form action target only 1 script. I currently
>> > have
>> > a script for each form because I canıt print the Tour Name ff<Tour>.
>> >
>> > Actually I would also need to pass a unique PayPal buy now button per
>> > tour
>> > so maybe I canıt use one script and confirmation page for al Tour
>> > registration forms.
>> >
>> > Thoughts?
>> >
>> > Best,
>> >
>> >
>> > On 3/11/10 12:41 PM, "FormToEmail.com" wrote:
>> >
>>>> >> > Hi
>>>> >> >
>>>> >> > Glad you like the script!
>>>> >> >
>>>> >> > I'm not sure what you mean by the "results" page. Do you mean the
page
>>>> >> > the
>>>> >> > visitor gets redirected to after submitting the form?
>>>> >> >
>>>> >> > Are you using the free script or the Pro script? Are you
>>>> >> > redirecting
>>>> >> > to a
>>>> >> > "thank you" page or are you using the "thank you" message in the
>>>> script
>>>> >> > or
>>>> >> > a
>>>> >> > template for the "thank you" message?
>>>> >> >
>>>> >> > If I think I understand you, you have various different forms but
>>>> >> > you
>>>> >> > want
>>>> >> > to use one "thank you" page with a message on it, specific to each
>>>> >> > form?
>>>> >> > If
>>>> >> > so, you should make a hidden field on the form like so:
>>>> >> >
>>>> >> > <input type="hidden" name="Tour" id="Tour" value="Tour de France -
>>>> >> > 2010,
>>>> >> > Pyrenees to Bordeaux Prestige">
>>>> >> >
>>>> >> > Then on the "thank you" page HTML, you would put:
>>>> >> >
>>>> >> > Tour: <?php print $_REQUEST['Tour'] ?>
>>>> >> >
>>>> >> > If you give me the URL of the form page, or explain your setup to
>>>> >> > me,
I
>>>> >> > can
>>>> >> > help further.
>>>> >> >
>>>> >> > Best wishes.
>>>> >> >
>>>> >> > Charles Sweeney
>>>> >> > https://formtoemail.com
>>>> >> > The world's easiest feedback script!
>>>> >> >
>>>> >> > ----- Original Message -----
>>>> >> > Sent: Thursday, March 11, 2010 7:32 PM
>>>> >> > Subject: FormToEmail script
>>>> >> >
>>>> >> >

>>>>>>>> >>>> >> > Comments: Your script works beautifully. Thank you for
writing
>>>>>>>> >>>> >> > this. I
>>>>>>>> >>>> >> > need to print the a hidden form field value on the
>>>>>>>> >>>> >> > results
page. I
>>>>>>>> >>>> >> > tried
>>>>>>>> >>>> >> > this but it didn't work: <input type="hidden" name="Tour"
>>>>>>>> >>>> >> > id="Tour"
>>>>>>>> >>>> >> > value="<?php print "Tour de France - 2010, Pyrenees to
Bordeaux
>>>>>>>> >>>> >> > Prestige"?>">.
>>>>>>>> >>>> >> >
>>>>>>>> >>>> >> > If I can do this then I can use 1 script and 1
>>>>>>>> >>>> >> > confirmation
to
>>>>>>>> >>>> >> > process
>>>>>>>> >>>> >> > all
>>>>>>>> >>>> >> > forms on my site.