Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-09-2006, 04:27 PM
dharrison's Avatar
Moderator
WebProWorld Moderator
 

Join Date: May 2005
Location: Essex, UK
Posts: 1,460
dharrison RepRank 3dharrison RepRank 3
Default PHP Form cannot be viewed by Customer

Hi

I have a problem. I am in the process of updating my customer's form (can be found at the bottom of page: http://www.dvhdesign.co.uk/rf/contact.php ). I gave the link to my customer and he gets a 404 page not found error.

Is there something that I am doing wrong or is there a browser setting that is stopping him from seeing the page.

Any help will gratefully be recieved.

Best regards
__________________
Deb Harrison
DVH Design
Essex Web Design | Web Design Blog
Reply With Quote
  #2 (permalink)  
Old 05-09-2006, 05:15 PM
WebProWorld New Member
 

Join Date: Dec 2005
Location: UK
Posts: 11
iowarth RepRank 0
Default PHP form not visible

I'm afraid I have no idea as to the precise cause. Firstly I suggest you look for the obvious - i.e. does he have the link precisely correct? Was it truncated by his email client? Has he copied it correctly? You could put a test page up on his site and give him the link to that containing nothing but a link to the form page - see if he can access it then.
Having said this, a few months ago, shortly after the release of XP SP2, a number of people had the same problem with a form on one of my sites. In all cases it disappeared after either uninstalling SP2 (as several did due to other problems it generated) or after subsequent updates.
It could also be worth him checking his Internet Explorer.Tools.Internet Options security tab. If it is set on high this disables just about everything on the web!
__________________
Chris Davis
Webmaster, The Herpetological Conservation Trust
Reply With Quote
  #3 (permalink)  
Old 05-09-2006, 07:39 PM
WebProWorld New Member
 

Join Date: Oct 2005
Location: Melbourne, Australia
Posts: 11
smbotans RepRank 0
Default

don't know if this will help ... the link you posted takes us directly to the contact form but the CONTACT FORM link at the top of the page points to http://www.dvhdesign.co.uk/rf/contact.html which does give an 404 error

may be this is what is happening? ie. you need to change the link from html to php

serge
Reply With Quote
  #4 (permalink)  
Old 05-09-2006, 09:19 PM
stevealmond's Avatar
WebProWorld Member
 

Join Date: Dec 2003
Location: Barbate, Spain
Posts: 90
stevealmond RepRank 0
Default

The link that you have posted works great. However I wasn't sure from your post whether it was when the form had been completed and sent that the 404 error came up. So I duly completed all the fields and sent the form, receiving the page that says my message has been received and I will be dealt with shortly.

Great stuff, the page works perfectly, but I don't really want to have anyone contact me, it was only a test!

However the problem is on the contact page with the contact us link. The link is a html link rather than a php link.

Hope this helps.

Regards

Steve
Reply With Quote
  #5 (permalink)  
Old 05-09-2006, 09:33 PM
stevealmond's Avatar
WebProWorld Member
 

Join Date: Dec 2003
Location: Barbate, Spain
Posts: 90
stevealmond RepRank 0
Default

Saying that I have just checked all of the links at the top of the page that you have posted. All of them return a 404 from the dvhdesign server. So I am now not sure that I am barking up the wrong tree!

Steve
Reply With Quote
  #6 (permalink)  
Old 05-10-2006, 03:48 AM
dharrison's Avatar
Moderator
WebProWorld Moderator
 

Join Date: May 2005
Location: Essex, UK
Posts: 1,460
dharrison RepRank 3dharrison RepRank 3
Default

Hi Steve

Just in case this is the problem, I have changed it. Thanks man.

The other links won't work on my site as I have only uploaded that page rather than the entire website. The other links at this stage are irrelevent.

Thanks for your help.

Best regards
__________________
Deb Harrison
DVH Design
Essex Web Design | Web Design Blog
Reply With Quote
  #7 (permalink)  
Old 05-10-2006, 05:32 AM
kgun's Avatar
WebProWorld 1,000+ Club
 

Join Date: May 2005
Location: Norway
Posts: 5,402
kgun RepRank 3kgun RepRank 3kgun RepRank 3
Default

Other potential (future) problems?

Do you use secure fields by escaping special characters?

Do you put the content of the form in a MySQL database? If not, I suppose that you do that already now, so you can build up a customer database (CMS system).

It takes you a few hours to learn the basics of MySQL, hours that may be more than saved in the future.
Reply With Quote
  #8 (permalink)  
Old 05-10-2006, 05:46 AM
dharrison's Avatar
Moderator
WebProWorld Moderator
 

Join Date: May 2005
Location: Essex, UK
Posts: 1,460
dharrison RepRank 3dharrison RepRank 3
Default

Not quite sure I follow kgun, do you mean learn PHP/MySQL to escape prevent future problems?

stevealmond, I spoke to my customer and you were right, he was clicking that link. Sorted.

Many thanks all of you for your help. I hope I can return the favour soon. :)

Best regards
__________________
Deb Harrison
DVH Design
Essex Web Design | Web Design Blog
Reply With Quote
  #9 (permalink)  
Old 05-10-2006, 08:26 AM
kgun's Avatar
WebProWorld 1,000+ Club
 

Join Date: May 2005
Location: Norway
Posts: 5,402
kgun RepRank 3kgun RepRank 3kgun RepRank 3
Default

Quote:
Originally Posted by dharrison
Not quite sure I follow kgun, do you mean learn PHP/MySQL to escape prevent future problems?
No, I do not know how experienced you are to programming, but if I remember right, you wrote another place that you was new to PHP. Escaping special input (like special characters) is a well known problem in programming and has resulted in much headache. It is especially related to text strings. And it is getting worse if you combine PHP / MySQL.

KW magic quotes in php

If you use MySQL

KW SQL injection attacks

Relevant links:
Top 7 PHP Security Blunders

Write Secure Scripts with PHP 4.2!

Rule: Escape all data from external resources.

That means strip / modify input text etc. for potential problematic code (e.g. special characters).

I reccomended using MySQL to collect the user information in a database. That may be the start of your own content management system.

The top of laziness is to make it right from the start.

And if you use MySQL:

Each type of entity (or "thing") that you want to be able to store information about should be given its own table.

If you need to store multiple values in a single field, your design is probably flawed.

Source: Kevin Yank Build Your Own Database Driven Website Using PHP & MySQL

Excellent book, that shows how you can build your own CMS. It is not difficult.

P.S. I am quite new to PHP myself, but not to programming, and know how important it is to get it right from the start.
Reply With Quote
  #10 (permalink)  
Old 05-10-2006, 06:55 PM
dharrison's Avatar
Moderator
WebProWorld Moderator
 

Join Date: May 2005
Location: Essex, UK
Posts: 1,460
dharrison RepRank 3dharrison RepRank 3
Default

Thanks for this kgun.

I am new to PHP, I have programmed for a few years.
__________________
Deb Harrison
DVH Design
Essex Web Design | Web Design Blog
Reply With Quote
  #11 (permalink)  
Old 05-10-2006, 11:16 PM
davebarnes's Avatar
WebProWorld MVP
WebProWorld MVP
 

Join Date: Jul 2003
Location: Denver, Colorado USA
Posts: 1,475
davebarnes RepRank 3davebarnes RepRank 3davebarnes RepRank 3
Default form design

A comment on the design of the form.

Remove the "Clear From" button.
No one ever really wants to do this.
The people who click on it will do so accidently and become very upset that they just nuked all their typing effort.

,dave
__________________
Dave Barnes
+1.303.744.9024
http://www.marketingtactics.com
Reply With Quote
  #12 (permalink)  
Old 05-11-2006, 03:11 AM
dharrison's Avatar
Moderator
WebProWorld Moderator
 

Join Date: May 2005
Location: Essex, UK
Posts: 1,460
dharrison RepRank 3dharrison RepRank 3
Default

Thanks David. I do this out of habit, one I really need to break.
__________________
Deb Harrison
DVH Design
Essex Web Design | Web Design Blog
Reply With Quote
  #13 (permalink)  
Old 05-11-2006, 06:49 AM
kgun's Avatar
WebProWorld 1,000+ Club
 

Join Date: May 2005
Location: Norway
Posts: 5,402
kgun RepRank 3kgun RepRank 3kgun RepRank 3
Default

And a question about colours?

Why do you use yellow and white in that way?

Did you mean?

* Required fields in yellow?
Reply With Quote
  #14 (permalink)  
Old 05-18-2006, 11:40 AM
WebProWorld Pro
 

Join Date: Feb 2004
Location: England Baby!
Posts: 222
icb01co2 RepRank 0
Default

Form not working for me. 404 sorry.
Reply With Quote
  #15 (permalink)  
Old 05-20-2006, 01:58 PM
dharrison's Avatar
Moderator
WebProWorld Moderator
 

Join Date: May 2005
Location: Essex, UK
Posts: 1,460
dharrison RepRank 3dharrison RepRank 3
Default

Thats because its no longer there I have officially released it to my customer's website.

Thanks anyway.
__________________
Deb Harrison
DVH Design
Essex Web Design | Web Design Blog
Reply With Quote
  #16 (permalink)  
Old 05-20-2006, 02:02 PM
dharrison's Avatar
Moderator
WebProWorld Moderator
 

Join Date: May 2005
Location: Essex, UK
Posts: 1,460
dharrison RepRank 3dharrison RepRank 3
Default

Quote:
Originally Posted by kgun
And a question about colours?

Why do you use yellow and white in that way?

Did you mean?

* Required fields in yellow?
I don't. Thats just your browser.

And anyway on my browser, only 2 fields come up in yellow and I have 4 more fields that are required. So if it is different in both cases then saying they are yellow will confuse users more.

Thanks for your observations anyway. They are most appreciated.
__________________
Deb Harrison
DVH Design
Essex Web Design | Web Design Blog
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0