arale
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.
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.