HighDots Forums  

Problem with a form

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Problem with a form in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #21  
Old   
Gary White
 
Posts: n/a

Default Re: Problem with a form - 08-05-2004 , 08:40 PM






"Bonnie in Sacramento" <kroko (AT) endofmyropesbcglobal (DOT) net> wrote in
message news:ceuft4$rcs$1 (AT) forums (DOT) macromedia.com...
Quote:
It worked great with that bracket fix: however, the sending is
showing
up in my e-mail as "nobody." When I have analyzed the banana
example,
will I know what to change so it take the input from the name the
user
types in?

No. The "from" name/address are done with a message header. Lesson 5
actually deals with sending attachments, but the first part of the
lesson shows adding a header that does what you want. See:

http://apptools.com/phptools/forms/forms5.php

That example has the "from" address hard coded. When you have analyzed
the banana example, you'll understand how to use that to place the
user entered information in the from name/address.

Gary




Reply With Quote
  #22  
Old   
Bonnie in Sacramento
 
Posts: n/a

Default Re: Problem with a form - 08-05-2004 , 08:45 PM






So, Gary, I changed the form to have this line:

<td><input type="text" name="Name"></td>

where "Name" is like Clyde in your example. Then I added the $x thingie
here:

// no errors, so we build our message
$x=$_POST['Name'];
$recipient = 'kroko (AT) sbcglobal (DOT) net';

and then put the string you said to embed here:

$msg = "Message from: $from\n\n".stripslashes($_POST['MsgBody']);
$msgbody="The user entered $x in Name."
if (mail($recipient, $subject, $msg))
echo nl2br("<b>Message Sent:</b>

Is that how it should work?

--
Bonnie in Sacramento
kroko at
sbcglobal dot net
http://www.theanimalrescuesite.com/cgi-bin/WebObjects/CTDSites.woa

Reply With Quote
  #23  
Old   
Gary White
 
Posts: n/a

Default Re: Problem with a form - 08-06-2004 , 02:22 AM



"Bonnie in Sacramento" <kroko (AT) endofmyropesbcglobal (DOT) net> wrote in
message news:ceukat$1ag$1 (AT) forums (DOT) macromedia.com...


You're mixing two different examples and not quite hooking them
together.


$x=$_POST['Name'];
$recipient = 'kroko (AT) sbcglobal (DOT) net';
$msgbody="The user entered $x in Name."
$msgbody.="\n\n".$_POST['MsgBody'];
if (mail($recipient, $subject, $msgbody,"From: $x\r\n"))
echo "<b>Message Sent:</b>";

Gary



Reply With Quote
  #24  
Old   
MF
 
Posts: n/a

Default Re: Problem with a form - 08-07-2004 , 06:13 PM



Hi,

I'd recommend that you take a look at FormBreeze
(http://www.formbreeze.com). We use this for all our forms and it is
the best solution I have seen with capabilities way beyond formmail
scrips.


Bonnie in Sacramento <kroko (AT) endofmyropesbcglobal (DOT) net> wrote

Quote:
Murray *TMM* wrote:
Formmail works, Bonnie.

Maybe for you it does...I was just too stupid to figure it out, and I
think when I sent it to you you couldn't help 'cause of not doing perl,
n'est-ce pas? ;-) I could have probably gotten a tech at ipowerweb to
help me (tip to OP--call in the middle of the night, when they're not so
busy), but now that this PHP thing is on the verge of working, I think
I'll stick with it.

Reply With Quote
  #25  
Old   
.: Nadia :.TMM :.
 
Posts: n/a

Default Re: Problem with a form - 08-08-2004 , 06:24 AM



After reading a handful of exactly the same response from you to any form
question on the forum, this definitely sounds like an advert of some kind.
................

--
Nadia
Team Macromedia Volunteer for Dreamweaver
---------------
http://www.DreamweaverResources.com
Free Templates | Free Nav Bar Sets
Dropdown Menu Designs | CSS Layouts
Ecommerce - YVStore | SEO Articles
Table Tutorials | Background image Tutorials
------------------------------------------------
MM Dreamweaver Tutorials
http://macromedia.com/devnet/mx/dreamweaver/
-----------------




"MF" <seeker79 (AT) yahoo (DOT) com> wrote

Quote:
Hi,

I'd recommend that you take a look at FormBreeze
(http://www.formbreeze.com). We use this for all our forms and it is
the best solution I have seen with capabilities way beyond formmail
scrips.


Bonnie in Sacramento <kroko (AT) endofmyropesbcglobal (DOT) net> wrote

Murray *TMM* wrote:
Formmail works, Bonnie.

Maybe for you it does...I was just too stupid to figure it out, and I
think when I sent it to you you couldn't help 'cause of not doing perl,
n'est-ce pas? ;-) I could have probably gotten a tech at ipowerweb to
help me (tip to OP--call in the middle of the night, when they're not so
busy), but now that this PHP thing is on the verge of working, I think
I'll stick with it.



Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.