This is a discussion on "problem with my form script?" within the PHP Forum section. This forum, and the thread "problem with my form script? are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
problem with my form script?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
problem with my form script?
This is the first php I have ever written, and I want to check if its correct.
I created a form in dreamweaver that includes -a text box -a file upload -three check boxes -submit button. I wrote this code in hopes to send the info to my e-mail address:
Is this looking correct? I inputted everything into my hosting server, but it doesnt work, infact, while in firefox it opens up a blank mail window, and it never redirects anyone to the send success page. In internet explorer, when I mouseover the submit button, it shows an mailto e-mail address I had origionally tried adding, but I removed that yesterday, so i dont understand why its still showing up. Is it just the updates I make in dreamweaver dont take affect immediatly on the server? Please help! EDIT: wow I actually got it to work now, I just uploaded it in the wrong spot on the server, the mail went through, but the results of the form did not show up in the e-mail, and the sent file was not there either. So what should I do to my script to fix this? I'm completely puzzled. Last edited by c010depunkk; Jan 30th, 2008 at 04:43. Reason: please use [PHP] tags when posting PHP |
|
|
|
|||
|
Re: problem with my form script?
You need to assign a value to $message.
eg...
Give that a go without the file for now, and see if you get the rest of the data sent to you in an email. |
|
|||
|
Re: problem with my form script?
Your next step is to start validating that data. Spammers will use that form to send out mass emails. Since your using $_REQUEST instead of $_POST (assuming your action is post), they can append extra data to the URL.
|
|
||||
|
Re: problem with my form script?
I find using $_POST is the best way to send the data, although I understand it is your first attempt. Can I see your html for the code please?
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
|||
|
Re: problem with my form script?
heres the code for my form in dreamweaver:
Last edited by c010depunkk; Jan 31st, 2008 at 06:31. Reason: please use [HTML] tags when posting HTML |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| form element disable script | thenamenoonehastaken | JavaScript Forum | 1 | Apr 21st, 2008 09:39 |
| PHP Login Script / form | prydie | PHP Forum | 0 | Mar 27th, 2008 06:55 |
| Anyone have a working search form script? | daveg33 | PHP Forum | 12 | Sep 28th, 2007 23:54 |
| Need help please with PHP Form script | mkidd | PHP Forum | 2 | Jun 19th, 2007 10:27 |
| PHP form mail script required... | JohneeMac | PHP Forum | 7 | Sep 27th, 2004 18:54 |