php form error

Good Afternoon,

I did a website http://www.sliszlaw.com

When emailing w the PHP feedback form you get this error:

Notice: Undefined index: name in E:WebsitesClientssliszlawcontact-go.php on line 81

What is wrong? and what do I have to do?

Thank you!!

J


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

but I am getting messages…

J
On Mar 2, 2011, at 4:46 PM, Julie Maxwell Allen wrote:

Good Afternoon,

I did a website http://www.sliszlaw.com

When emailing w the PHP feedback form you get this error:

Notice: Undefined index: name in E:WebsitesClientssliszlawcontact-go.php on line 81

What is wrong? and what do I have to do?

Thank you!!

J


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

Well, first problem is you seem to be hosting on a Windows computer.
Not sure you can help with that part, especially if your client is
hosting themselves.

But most likely the issue on your site is the name of the form fields.
Click on each form element, and then click on the third tab from the
left in the Inspector. There is a Name field in that part of the
inspector, and that’s where you set the actual name attribute for the
form input. This attribute is what the server uses to connect the form
submission to the rest of the logic in your form handler.

In the case of this form, your Name field is named item4, email is
named item5, and the message textarea is named item6. Your form
handler is trying to construct a “who sent this” header for the mail
message, and since nothing in your form is named “name”, it’s throwing
this error. Read through Tim’s instructions for the Action – I’m
pretty sure that at bare minimum, you have to have a ‘name’ and
‘email’ field (named exactly that, nothing more or less, not
capitalized or pluralized) in each form that you process with this
Action.

Other basic form-building information. No two form elements may be
named the same as one another, unless you have a specific reason to do
so and know what you’re doing. Minor exception to this rule is Radio
Buttons, which have to named the same as one another in order to form
a radio group (such that only one may be pressed at one time).

Walter

On Mar 2, 2011, at 4:46 PM, Julie Maxwell Allen wrote:

What is wrong? and what do I have to do?


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

I changed the field names and am still getting the same error.

ugh

J
On Mar 2, 2011, at 4:58 PM, Walter Lee Davis wrote:

Well, first problem is you seem to be hosting on a Windows computer. Not sure you can help with that part, especially if your client is hosting themselves.

But most likely the issue on your site is the name of the form fields. Click on each form element, and then click on the third tab from the left in the Inspector. There is a Name field in that part of the inspector, and that’s where you set the actual name attribute for the form input. This attribute is what the server uses to connect the form submission to the rest of the logic in your form handler.

In the case of this form, your Name field is named item4, email is named item5, and the message textarea is named item6. Your form handler is trying to construct a “who sent this” header for the mail message, and since nothing in your form is named “name”, it’s throwing this error. Read through Tim’s instructions for the Action – I’m pretty sure that at bare minimum, you have to have a ‘name’ and ‘email’ field (named exactly that, nothing more or less, not capitalized or pluralized) in each form that you process with this Action.

Other basic form-building information. No two form elements may be named the same as one another, unless you have a specific reason to do so and know what you’re doing. Minor exception to this rule is Radio Buttons, which have to named the same as one another in order to form a radio group (such that only one may be pressed at one time).

Walter

On Mar 2, 2011, at 4:46 PM, Julie Maxwell Allen wrote:

What is wrong? and what do I have to do?


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

Julie, ‘Name’ is not the same as ‘name’ to a computer. You could have
a variable called $Name and another called $name, and they would be
completely separate from one another. Case matters.

Walter

On Mar 2, 2011, at 5:03 PM, Julie Maxwell Allen wrote:

I changed the field names and am still getting the same error.


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

Silly me did not read that no capitalization statement.

Thank you - perfect now with your amazing save.

J
On Mar 2, 2011, at 6:23 PM, Walter Lee Davis wrote:

Julie, ‘Name’ is not the same as ‘name’ to a computer. You could have a variable called $Name and another called $name, and they would be completely separate from one another. Case matters.

Walter

On Mar 2, 2011, at 5:03 PM, Julie Maxwell Allen wrote:

I changed the field names and am still getting the same error.


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

I think your Error page is a bit harsh. Be a bit more descriptive.

Also if you provide a ‘Back’ link then the visitor will be taken back to the form and not have to fill it in all over again http://www.deltadesign.co/error.php

This is as simple as selecting your back link text. Edit>Hyperlink.

Choose External then Javascript from the protocol and put in history.go(-1) so that it all reads javascript:history.go(-1)

David


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

And I still think your form would look neater in a 2 col 4 row layout with all the Legends above one another and the same for the input fields.

And a bigger Map!

D


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

I will work on all in a few.

THank you! I did not know how to do the back button.

Julie
On Mar 2, 2011, at 8:00 PM, DeltaDave wrote:

And I still think your form would look neater in a 2 col 4 row layout with all the Legends above one another and the same for the input fields.

And a bigger Map!

D


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