Page 1 of 1

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

Posted: Thu Mar 06, 2008 8:05 am
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?)

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

Posted: Thu Mar 06, 2008 8:51 am
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.

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

Posted: Thu Mar 06, 2008 8:55 am
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.

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

Posted: Thu Mar 06, 2008 9:49 am
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.