Do you guys know the answer to this PHP question? Help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
frost1
Forum Newbie
Posts: 1
Joined: Thu Mar 06, 2008 7:42 am

Do you guys know the answer to this PHP question? Help

Post by frost1 »

Hi,

I use GoDaddy. Called 4 times (yes, 4)....and they couldn't help? who knows?

I had a couple questions (which should seem simple).... before I turn into an alcoholic?

I want my input fields (used since the 1990's or whatever they're using today) to be required when someone fills it out (ex. name, shipping, credit card ect...) When they order a product but forget to include the shipping address... I'm screwed.

Also... I need an input field that will send me the customers order info (after they click submit on the form). Without this, I have no idea when someone orders?

Please help.

What I have so far is below....
You have full permission to email me at davidaza@aol.com.


<form action="/gdform.php" method="post">
<input type="hidden" name="subject" value="Form Submission"/>
<input type="hidden" name="SendMailTo" value="davidaza@aol.com"> (NOT WORKING?)
<input type="hidden" name="redirect" value="thanks.htm">
<input type="hidden" name="return_link_url" value="aboutus.htm">
<input type="hidden" name="return_link_title" value="click here">
<input type="hidden" name="required" value="name,address,city,zip/postal code,credit card number"> (this is NOT WORKING?)
User avatar
Zoxive
Forum Regular
Posts: 974
Joined: Fri Apr 01, 2005 4:37 pm
Location: Bay City, Michigan

Re: Do you guys know the answer to this PHP question? Help

Post by Zoxive »

I'm not sure what your background is, but from what you are showing, and what you want... you are very far off.

I also do hope for your customers sake, that you are not throwing credit card information around in plain text.

Also for godaddy's sake, and others, they are web host, not a go to place for coding issues.
User avatar
Sekka
Forum Commoner
Posts: 91
Joined: Mon Feb 18, 2008 10:25 am
Location: Huddersfield, West Yorkshire, UK

Re: Do you guys know the answer to this PHP question? Help

Post by Sekka »

What are you using for form validation and sending? I am assuming the hidden fields are setup for a 3rd party piece of code?

If they are, this is a serious security hole for your website. Someone could edit the HTML and submit the form themselves bypassing any validation and sending the emails elsewhere, etc.

All logic and validation should be server side.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Do you guys know the answer to this PHP question? Help

Post by pickle »

[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:2. Use descriptive subjects when you start a new thread. Vague titles such as "Help!", "Why?" are misleading and keep you from receiving an answer to your question.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply