Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

PHP mailto problems

New Here ,
May 26, 2006 May 26, 2006
Hi, i am developing a PHP powered form for visitors to leave feedback on our website. Can anyone suggest a reason why it is only returning the email address and no other infromation entered please?

the PHP script is as follws:

<?
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;

mail( "example@example.com", "Customer Feedback Form Results",
"$message\nTitle: $title\nForename: $forename\nSurname: $surname\nEmail Address: $email\nAddress Line 1: $address1\nAddress Line 2: $address2\nAddress Line 3: $address3\nPost Code: $postcode\nTelephone: $telephone\nFax: $fax\nQuestion1: $question1\nQuestion2: $question2",
"From: $email" );
header( "Location: http://www.example.com/feedbackreceived.htm" );
?>

Thanks in advance for any help!
Dan
TOPICS
Server side applications
546
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 26, 2006 May 26, 2006
Show me the HTML for the form, please. I'm guessing that your form does not
contain a field called "message".

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"dangeorge the man" <webforumsuser@macromedia.com> wrote in message
news:e56t0r$bcl$1@forums.macromedia.com...
> Hi, i am developing a PHP powered form for visitors to leave feedback on
> our
> website. Can anyone suggest a reason why it is only returning the email
> address and no other infromation entered please?
>
> the PHP script is as follws:
>
> <?
> $email = $_REQUEST['email'] ;
> $message = $_REQUEST['message'] ;
>
> mail( "example@example.com", "Customer Feedback Form Results",
> "$message\nTitle: $title\nForename: $forename\nSurname: $surname\nEmail
> Address: $email\nAddress Line 1: $address1\nAddress Line 2:
> $address2\nAddress
> Line 3: $address3\nPost Code: $postcode\nTelephone: $telephone\nFax:
> $fax\nQuestion1: $question1\nQuestion2: $question2",
> "From: $email" );
> header( "Location: <a target=_blank class=ftalternatingbarlinklarge
> href=" http://www.example.com/feedbackreceived.htm"">http://www.example.com/feedb
> ackreceived.htm"</a> );
> ?>
>
> Thanks in advance for any help!
> Dan
>
>


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 26, 2006 May 26, 2006
the html is attached, thanks, Dan
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 26, 2006 May 26, 2006
Where did you get this incredibly mangled HTML?

<body>
<label><label><table width="800" border="0" align="center" cellpadding="0"
cellspacing="0" bgcolor="#FFFFFF"
onsubmit="MM_validateForm('title','','R','forename','','R','email','','RisEmail'
,'address1','','R','postalcode','','R','telephone','','NisNum','fax','','NisNum'
);return document.MM_returnValue">

There is no form there at all, but several instances of this curious form
validation applied to the table tag?

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 26, 2006 May 26, 2006
That "incredibly mangled HTML" was the result of applying behaviours to the form in Dreamweaver to validate the information submitted. I have since found out that are host: Demon.net are crap, and they actually recommend using the old Zisp/Mailer instead of php for emailing; which to me seems outrageous as we had to upgrade our package to get php in the firstplace. I have now done the zisp mailer, and its working ok. thanks for trying.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 26, 2006 May 26, 2006
> That "incredibly mangled HTML" was the result of applying behaviours to
> the
> form in Dreamweaver to validate the information submitted.

You'd have to do MUCH more than simply apply behaviors to get that mess.
Like hit it with a sledgehammer.

But whatever - good luck.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"dangeorge the man" <webforumsuser@macromedia.com> wrote in message
news:e575fg$mbn$1@forums.macromedia.com...
> That "incredibly mangled HTML" was the result of applying behaviours to
> the
> form in Dreamweaver to validate the information submitted. I have since
> found
> out that are host: Demon.net are crap, and they actually recommend using
> the
> old Zisp/Mailer instead of php for emailing; which to me seems outrageous
> as we
> had to upgrade our package to get php in the firstplace. I have now done
> the
> zisp mailer, and its working ok. thanks for trying.
>


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 26, 2006 May 26, 2006
LATEST
Give the full location of the variables eg

$forename should be:

$_POST['forename'];

You should always give the reference to the location that the variables are
coming from when you code ie:

$_GET['variable_name'] - For a variable from a URL or a form sent with the
GET method
$_POST['variable_name'] - For a variable coming from a form sent with the
POST method (standard way)
$_COOKIE['variable_name'] - For a variable that comes from a cookie
$_SESSION['variable_name'] - For a variable that comes from a session
variable

The old way of just using the name eg $forename instead of
$_POST['forename'] is deprecated because its insecure

Gareth
http://www.phploginsuite.co.uk/
PHP Login Suite V2 - 34 Server Behaviors to build a complete Login system.


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines