Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 04-02-2005, 06:07 PM php email
Skilled Talker

Posts: 62
Trades: 0
hello

i've been trying to dabble with php and realised i'm in too deep - already!

the site is really simple but this email form is anything but simple. it is probablt the form2mail document that is fuzzing things up, but what would I know...?

my server people tell me it is php3 and the function has been changed from mail to email.

i did one of these forms about four years ago without any problems. what's up with the extra e ?

any help appreciated.

thanks

neil
neila is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-02-2005, 06:18 PM
amw_drizz's Avatar
Ultra Talker

Posts: 340
Name: Jon
Location: New York
Trades: 0
okay first problem... your need to rename your form2mail to form2mail.php and update your <form action="form2mail"> to <form action="form2mail.php"> as you are calling a dud file and will not be parsed by php with out that .php extension. if that does not work get back to us

Edit: Or You can Try the Following Script. Should work has your form vars in it. if you looking at sending emails try this script
PHP Code:
<?php
$email 
$_POST['nom'];
$ok 1;
$sujet"Form2Mail de Paris Photographique".$referer;
$body.="Originating page: $referer\n";
$body.="\n*** Result values ***\n";
$dest="neil@parisphotographique.org";
$referergetenv("HTTP_REFERER");

$mailme =($dest$sujet$body);
$mailhim = ($email$sujet$body);

echo 
$mailme;

if (
$mailme $ok) {
echo 
'Thank You';
}
else if (
$mailhim $ok) {
}
else {
echo 
'Problems Sending Mail';
}
?>
__________________
AMW_Drizz
Dev Machine:: Apache 2.2.6 PHP 5.2.6 MySQL 5.1

Last edited by amw_drizz; 04-02-2005 at 06:29 PM..
amw_drizz is offline
Reply With Quote
View Public Profile Visit amw_drizz's homepage!
 
Reply     « Reply to php email
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.38401 seconds with 12 queries