View Full Version : need help with php...

05-04-2006, 04:28 AM
I'm newbie, I don't know anything about php, mysql; can you help me to write simple php script?

I have a html page with forms: name*, email*, msg and a browser upload file.
- I want when users submit this form, error will show if they don't enter require field * and check file size, type.
- File upload (must be <500kb, allow only *.doc, *.txt, *.pdf type)
- If all field ok, they will redir to confilm page. they click send and an email with these info with attach file (if they select) will be send to me@mydomain.com and redir they to thanks page.

And users who enter these info will be record to contact system. (log name, email, ip, time gmt+7)
Admin must login to view info about them and he can send email to users...

Thanks for help.

05-04-2006, 09:27 AM
that doesnt really sound like a "simple php script" !!

Its certainly unlikely that someone will knock up one for you. Try google for tutorials on each subject, such as

"php upload tutorial"
"php mysql tutorial" etc etc

Once you have some code, post it and we can help from there.