[Pro] 2 PHP Feedback forms - 1 Page?

Is it OK to have 2 PHP action Feedback forms on 1 page reporting to 2 different email addresses? I am having having a bit of trouble with this. Or should I have each form on 2 different pages.

Thanks

Trev


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

If you use the Remove Form Action (part of the Multiple Forms Suite) to remove the one-and-only form from the page, you can then apply two different instances of the PHPFF Action to a parent element of each form. For example, lay out each of your feedback forms in a separate table, using a column for labels and a column for fields, with each field in a separate row. (This is just good usability practice anyway, and keeps your form from falling apart in different browsers.) Apply the PHPFF Action to the table, and make all of your settings there. Then do the same for your other form, and finally apply the Remove Form Action to the page. This will complete the process.

Walter

On Apr 15, 2013, at 11:42 AM, t50ufo wrote:

Is it OK to have 2 PHP action Feedback forms on 1 page reporting to 2 different email addresses? I am having having a bit of trouble with this. Or should I have each form on 2 different pages.

Thanks

Trev


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


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

Thanks for the reply Walter.

I have my two forms in separate tables but am confused - I have the PHP feedback form applied to each of my forms but I can’t see a “Remove Form” Page Action _ I only see “No Form” Page Action. I’m on 5.5.6 and have the latest Multiple Forms Suite dowloaded.

test page here:

http://www.professional-travel.co.uk/pt/contactus-profes.html


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

Sorry, yes. I did that from memory, and No Form is in fact what I meant.

Walter

On Apr 15, 2013, at 12:23 PM, t50ufo wrote:

Thanks for the reply Walter.

I have my two forms in separate tables but am confused - I have the PHP feedback form applied to each of my forms but I can’t see a “Remove Form” Page Action _ I only see “No Form” Page Action. I’m on 5.5.6 and have the latest Multiple Forms Suite dowloaded.

test page here:

http://www.professional-travel.co.uk/pt/contactus-profes.html


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


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

Thanks for that Walter,

Can I just confirm that I have done the right thing . . .
I have added the PHP Feedback form Action to each of the Form tables and then just added the “No Form” Page action to the Page?

Trev


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

Yes, that’s all you need to do. Publish it, and view source, and confirm that there are two tags in the page, and they each have a unique action attribute (the endpoint where the form will post its contents).

Walter

On Apr 15, 2013, at 12:51 PM, t50ufo wrote:

Thanks for that Walter,

Can I just confirm that I have done the right thing . . .
I have added the PHP Feedback form Action to each of the Form tables and then just added the “No Form” Page action to the Page?

Trev


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


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

Thankyou Walter

I have set up a test with the 2 forms on the page reporting back to my email and the clients as a test - I am getting both OK - just waiting for confirmation from the two target emails - I will let you know when they contact me.

Trev


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

OK

Problem with PHP form. When I test send with emails to myself and a couple of other email addresses as a test - I am seeing the reply OK but no-one else. Never had this problem with the form before. Can you suggest anything that may help?

Trev


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

Update:

I uploaded same form to a different server and it worked OK.

My client got the email as did I.
Could it be that the server is not processing the PHP form? or the form is not reporting to the web address on that server?

Trev


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

Some servers require you to send all e-mail from a user on that server. The PHPFF Action uses a trick to send mail “apparently from” the person who filled out the form, so that a reply to that sender (by the admin recipient) would do the unsurprising thing of replying to the person who filled out the form. If that username didn’t exist on the sending server, then these picky servers would drop the mail on the floor, as an anti-spam measure. If you find yourself on one such server, then you can work around it in a limited way (losing the helpful unsurprising behavior) by changing the name of the email field in your form to something else (sender_email?) which will force the Action to send the form contents “from” the admin user to the admin user. You still capture the e-mail address, but it means one extra step to reply to that message.

Walter

On Apr 16, 2013, at 7:37 AM, t50ufo wrote:

Update:

I uploaded same form to a different server and it worked OK.

My client got the email as did I.
Could it be that the server is not processing the PHP form? or the form is not reporting to the web address on that server?

Trev


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


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

Hmmm! So the for field I have named as “email” on my form should change to “sender_email?” is that correct? and can you expand on the
“it means one extra step to reply to that message” part please.
The server this site will live on is out of my control (another story!)

Thanks Walter


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

Sure. The extra step will be that you hit reply, but then copy the e-mail address out of the form submission (it will be there, along with every other field in the form) and paste it into the To: field in your e-mail application. And yes, it doesn’t matter what you name that field, as long as it isn’t exactly email.

Walter

On Apr 16, 2013, at 8:55 AM, t50ufo wrote:

Hmmm! So the for field I have named as “email” on my form should change to “sender_email?” is that correct? and can you expand on the
“it means one extra step to reply to that message” part please.
The server this site will live on is out of my control (another story!)

Thanks Walter


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


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

OK - Thanks for that Walter

I will give it a go and get back to you.

Trev


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

OK - That did not work.

I changed the email field name to “sender_email?” the form sends oK to me (not the other recipient)
and on my receipt there is no email address (sender) in the body fields for me to cut and paste.
Any thoughts?

Trev


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

Check to make sure you are changing this field name in the correct place. Click once on the field and look in the third tab of the Inspector, at the Name field there. Changes made to the Name/ID (Freeway 6) or Title (Freeway 5) field in the first tab may not affect the true NAME of the field. It is this value (from the third tab) that the form handler cares about. The rest is mere decoration.

Walter

On Apr 16, 2013, at 9:54 AM, t50ufo wrote:

OK - That did not work.

I changed the email field name to “sender_email?” the form sends oK to me (not the other recipient)
and on my receipt there is no email address (sender) in the body fields for me to cut and paste.
Any thoughts?

Trev


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


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

Yes, the field name “sender_email?” is entered in the 3rd tab across (the Name field) I’m on v5.5.6

Should I make the Title in 1st Tab the same name?

Really struggling now :frowning:

Trev


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

The Title is not important at all. Can you post a link to a screenshot of your Actions palette while that PHPFF Action is active? Also, a link to your page might make it clear if there is an obvious issue with your HTML.

Walter

On Apr 16, 2013, at 10:20 AM, t50ufo wrote:

Yes, the field name “sender_email?” is entered in the 3rd tab across (the Name field) I’m on v5.5.6

Should I make the Title in 1st Tab the same name?

Really struggling now :frowning:

Trev


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


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

Yes certainly,

Screen grab of action active here:

http://www.professional-travel.co.uk/pt/pic1.png

and the form I am testing is the right hand one on the page (Dungannon Office) here:

http://www.professional-travel.co.uk/pt/contactus-profes.html


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

Hi Walter

Wonder did you get a minute to look at those links I posted?
Just a wee bit of pressure to have site go live.
Or if there is another method I could employ re the Feedback forms.

Thanks

Trev


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

The field “name” must be named precisely that: name must be lower-case. Your Mac is case-insensitive but case-preserving, but Linux or Unix (where you are most likely hosting this) is both case-sensitive and case-preserving, and so it cares when something is named Name versus name.

The left-hand form (Armagh) still has the e-mail field named ‘email’, so change that to something else. The right-hand form has the e-mail field set to ‘sender_email?’ (with the question mark). That’s an illegal variable name, so no question (PUN) why it doesn’t work on that side.

I’m not sure of the inner working of the Action on the message field – that might be something that the Action validates as well – but if it does, then the instructions will detail this. In any case, starting the field name with a capital letter (Message) might again step around any internal validation for the message field.

I can confirm that both of these forms are sending to their own unique form handler script, that part at least seems to be working.

Another approach you might try here is to set up a single form with a picker for which office the message should go to. Tim has another Action that side-cars onto this one that allows you to create a multi-recipient picking list. But first, let’s get this one working, because I believe you are really close.

Last thing to check here: you have set the mail to send from noreply@[domain] if a sender’s address is not provided. On some Web servers, the sending account must actually exist on the server (be set up with an in-box and everything) in order to allow that “user” to send mail. That would be something to investigate with your hosting provider. There may be an option to manually set a real existing address (not noreply) in this field. You could try that as another debugging step. Alternatively, you could create a new mail user named noreply in your cpanel.

Walter

On Apr 16, 2013, at 10:41 AM, t50ufo wrote:

Yes certainly,

Screen grab of action active here:

http://www.professional-travel.co.uk/pt/pic1.png

and the form I am testing is the right hand one on the page (Dungannon Office) here:

http://www.professional-travel.co.uk/pt/contactus-profes.html


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


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