| | |
I am new to PHP and need some help
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Oct 2006
Posts: 2
Reputation:
Solved Threads: 0
Hi,
I am new to PHP and need some help regarding some issues which I am facing in development of the contact form. Please look at the diagram at http://www.Photo-Host.org/view/392565untitled-1.gif http://www.Photo-Host.org/view/392565untitled-1.gif for the exact problem which I am facing. I have tried header() for that issue but it didn’t worked maybe I haven’t used it correctly. I think that could be done by using if and elseif. That’s what I think; I will be grateful to you for any solution about that problem. following is the link to the code:
http://pastebin.ca/208265Thanks in advance
I am new to PHP and need some help regarding some issues which I am facing in development of the contact form. Please look at the diagram at http://www.Photo-Host.org/view/392565untitled-1.gif http://www.Photo-Host.org/view/392565untitled-1.gif for the exact problem which I am facing. I have tried header() for that issue but it didn’t worked maybe I haven’t used it correctly. I think that could be done by using if and elseif. That’s what I think; I will be grateful to you for any solution about that problem. following is the link to the code:
http://pastebin.ca/208265Thanks in advance
•
•
Join Date: Oct 2006
Posts: 2
Reputation:
Solved Threads: 0
Thanks for reply; I am using the single page PHP contact form, which is working all the stuff. I am not using any other page to redirect user, I have to forwarded person within that page. Because I have to set the script to clear all form fields in the first stage “form” from “thank you page” while “data post” will send the data to my email address trough another PHP page. I know it sounds bit complicated but that’s the way I am trying to do it. That email is working over SMTP and HTML mime-based system.
IMHO, it is not good practice to use $_REQUEST. If you do not know what type of form you created or what method used in the url you are opening yourself up to a world of hurt. Also, it is good practice to validate all input coming into your site, this should guard against cross site scripting and sql injection. If you need more info on these topics, google arround for XSS, SQL injection, and validate/escape data.
![]() |
Similar Threads
- learning php (PHP)
- PHP vs ASP... the big ShOwdOwN (IT Professionals' Lounge)
Other Threads in the PHP Forum
- Previous Thread: Is there any php script
- Next Thread: HELP: created dreamweaver form, but how do i get results from form?
| Thread Tools | Search this Thread |
.htaccess alerts apache api archive array autocomplete beginner binary broken cakephp checkbox class cms code convert cron curl database dataentry date display duplicates dynamic echo email emptydisplayvalue error execute explodefunction file files firstoptioninphpdroplist folder form forms function functions google hack href htaccess html htmlspecialchars image include insert ip javasciptvalidation javascript joomla keywords limit link login mail matching menu methods mlm multiple mysql network object oop paypal pdf php problem query radio random recursion recursive redirect remote script search securephp server sessions shot sms source space sql subscription syntax system table tutorial tutorials update upload url validator variable video web youtube





