Search found 3 matches

by Gerb
Sun Jun 27, 2004 9:26 am
Forum: PHP - Code
Topic: Why doesn't this work???
Replies: 8
Views: 1309

Thanks people, LiLpunkSkateR's code did the trick, but I've edited it to format the email correctly, as shown below. Hopefully this will help someone else... <? $to = "email@mydomain.co.uk"; $content = "Name: " . $_POST['Name'] . "\n\n" . "Company: " . $_POST[...
by Gerb
Sat Jun 26, 2004 6:35 pm
Forum: PHP - Code
Topic: Why doesn't this work???
Replies: 8
Views: 1309

Sorry, to be honest I'm not familiar with PHP. I used a script from the web to handle my form, but now need to deal with setting it up for a register_global off server. It works fine when I remove the following code: $_POST['Company'], $_POST['Email'], $_POST['Comment'], If I add it back in (which i...
by Gerb
Sat Jun 26, 2004 5:56 pm
Forum: PHP - Code
Topic: Why doesn't this work???
Replies: 8
Views: 1309

Why doesn't this work???

Register_globals OFF has messed me up no end - now my mail script doesn't work: <? $to="myemail@mydomain.co.uk"; mail( "myemail@mydomain.co.uk", "Feedback from my domain", $_POST['Name'],$_POST['Company'], $_POST['Email'], $_POST['Comment'], "From: {$_POST['Email']...