I am new to PHP and need some help

Reply

Join Date: Oct 2006
Posts: 2
Reputation: riptheriper is an unknown quantity at this point 
Solved Threads: 0
riptheriper riptheriper is offline Offline
Newbie Poster

I am new to PHP and need some help

 
0
  #1
Oct 18th, 2006
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
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 133
Reputation: sn4rf3r is an unknown quantity at this point 
Solved Threads: 2
sn4rf3r's Avatar
sn4rf3r sn4rf3r is offline Offline
Junior Poster

Re: I am new to PHP and need some help

 
0
  #2
Oct 18th, 2006
i cant get to that image, can you explain any errors you are getting? how about relevant code?
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 2
Reputation: riptheriper is an unknown quantity at this point 
Solved Threads: 0
riptheriper riptheriper is offline Offline
Newbie Poster

Re: I am new to PHP and need some help

 
0
  #3
Oct 18th, 2006
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.
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 6
Reputation: mooresharon72 is an unknown quantity at this point 
Solved Threads: 1
mooresharon72 mooresharon72 is offline Offline
Newbie Poster

Re: I am new to PHP and need some help

 
0
  #4
Oct 20th, 2006
Is it better to use $_request instead of $_POST or $_GET? Since it does what $_POST and $_GET do anyway. Is there a drawback to using it?
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 6
Reputation: mooresharon72 is an unknown quantity at this point 
Solved Threads: 1
mooresharon72 mooresharon72 is offline Offline
Newbie Poster

Re: I am new to PHP and need some help

 
0
  #5
Oct 20th, 2006
Is there a function in PHP that's similar to CFHTTP? I need to read the contents of one of our sites.
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 133
Reputation: sn4rf3r is an unknown quantity at this point 
Solved Threads: 2
sn4rf3r's Avatar
sn4rf3r sn4rf3r is offline Offline
Junior Poster

Re: I am new to PHP and need some help

 
0
  #6
Oct 20th, 2006
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC