944,117 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 1687
  • PHP RSS
Oct 18th, 2006
0

I am new to PHP and need some help

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
riptheriper is offline Offline
2 posts
since Oct 2006
Oct 18th, 2006
0

Re: I am new to PHP and need some help

i cant get to that image, can you explain any errors you are getting? how about relevant code?
Reputation Points: 10
Solved Threads: 2
Junior Poster
sn4rf3r is offline Offline
133 posts
since Sep 2006
Oct 18th, 2006
0

Re: I am new to PHP and need some help

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
riptheriper is offline Offline
2 posts
since Oct 2006
Oct 20th, 2006
0

Re: I am new to PHP and need some help

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?
Reputation Points: 10
Solved Threads: 1
Newbie Poster
mooresharon72 is offline Offline
6 posts
since Oct 2006
Oct 20th, 2006
0

Re: I am new to PHP and need some help

Is there a function in PHP that's similar to CFHTTP? I need to read the contents of one of our sites.
Reputation Points: 10
Solved Threads: 1
Newbie Poster
mooresharon72 is offline Offline
6 posts
since Oct 2006
Oct 20th, 2006
0

Re: I am new to PHP and need some help

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.
Reputation Points: 10
Solved Threads: 2
Junior Poster
sn4rf3r is offline Offline
133 posts
since Sep 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Is there any php script
Next Thread in PHP Forum Timeline: HELP: created dreamweaver form, but how do i get results from form?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC