Forum Home
Press F1
 
Thread ID: 42275 2004-02-06 04:40:00 Urgent! PHP help stu140103 (137) Press F1
Post ID Timestamp Content User
213212 2004-02-09 02:34:00 Hi stu140103,

I see you have already solved the problem.

Just a few pointers to point out. $_REQUEST has security issues, so if you know whether the HTML Form's method is GET or POST you should use $_GET or $_POST.

$name = $_POST['name']; use ' (single apostrophe) as to " (double quotes), usually double quotes tells the interpreter that it's interpolated, meaning it's got to do some type of working out to get the value, but in this case it doesn't. This just doesn't put as much stress on the CPU.

There's limited error or security checking within this script. You are not checking whether they entered a correct email address, whether the other information contains any escaped characters.

Check out www.dtheatre.com for the PHP version of Matt Wright's Perl FormMail www.scriptarchive.com

This will probably be for intermediate/advance php scripters but hopefully it's self explanatory with the comments and easy to configure.

If you need help with anything else just ask.


Noel Nosivad
Noel Nosivad (389)
213213 2004-02-09 02:56:00 Hello Noel Nosivad

Thank you for your reply

But I am not using the above script any more ;) ( see below)

> Just a few pointers to point out. $_REQUEST has
> security issues, so if you know whether the HTML
> Form's method is GET or POST you should use $_GET or
> $_POST.

As I did not write this script I only coped the above script from one of the other pages on http://www.xlr8online.co.nz/

But I will past that on :)

& I was going to use the above script for this page: www.xlr8online.co.nz

But sal found me a better script :)
stu140103 (137)
1 2