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
  #11  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Problem with a form - 08-03-2004 , 08:28 PM






Ask them what they provide for form processing. This may be easy...

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(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
==================

"DLock" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Well, well, well ...
Not always simple to be a Mac user... but so exciting !
My web hoster supports PHP, ASP, SENDMAIL, PERL, but not CF.
Does it exist a tutorial on how to create this form, according the fact
I'm a
very beginner and that it is quite urgent ?
Thanks for your lights Murray,
DL




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

Default Re: Problem with a form - 08-04-2004 , 12:35 PM






Murray *TMM* wrote:

Quote:
Ask them what they provide for form processing. This may be easy...

Ipowerweb.com is also my host, and it provides a version of Matt's
formmail (cgi/perl) that I have never been able to make work. I did
finally manage to get a form to sort of work yesterday using
http://apptools.com/phptools/forms/ -- though I haven't quite yet ironed
out how to get the form-filler-outer's choices conveyed to me in the
e-mail (still sorting that), I **WAS** able to get it to send me the
form, and I am a complete newbie to any kind of programming. It should
be easy if the OP only wants an e-mail, rather than a form, to get it
working using this tutorial.


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


Reply With Quote
  #13  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Problem with a form - 08-04-2004 , 01:13 PM



Formmail works, Bonnie.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(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
==================

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

Quote:
Murray *TMM* wrote:

Ask them what they provide for form processing. This may be easy...

Ipowerweb.com is also my host, and it provides a version of Matt's
formmail (cgi/perl) that I have never been able to make work. I did
finally manage to get a form to sort of work yesterday using
http://apptools.com/phptools/forms/ -- though I haven't quite yet ironed
out how to get the form-filler-outer's choices conveyed to me in the
e-mail (still sorting that), I **WAS** able to get it to send me the
form, and I am a complete newbie to any kind of programming. It should
be easy if the OP only wants an e-mail, rather than a form, to get it
working using this tutorial.


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



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

Default Re: Problem with a form - 08-04-2004 , 01:52 PM



Bonnie in Sacramento wrote:

Quote:
I haven't quite yet ironed
out how to get the form-filler-outer's choices conveyed to me in the
e-mail

What problem are you having?


Gary


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

Default Re: Problem with a form - 08-04-2004 , 10:25 PM



Murray *TMM* wrote:
Quote:
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.

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


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

Default Re: Problem with a form - 08-04-2004 , 10:37 PM



Gary White wrote:

Quote:
What problem are you having?


Gary
I'll try to show you tomorrow, Gary, if you're interested. Since I
don't actually UNDERSTAND PHP, I'm having trouble converting the fields
in the code I copied to the fields in the form I actually need. I mean,
it's stupid to expect to be able to just copy and cut-and-paste when you
have only the vaguest idea of what the code is doing, but that's what
I'm trying to do. In the meantime, I DO have Beginning PHP4 (Choi,
Kent, Lea, Prasad, Ullman), but sometimes it's hard to take a couple of
hours to read a few chapters when you're hoping to get something UP; you
know? ;-)
--
Bonnie in Sacramento
kroko at
sbcglobal dot net
http://www.theanimalrescuesite.com/cgi-bin/WebObjects/CTDSites.woa


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

Default Re: Problem with a form - 08-05-2004 , 02:01 AM



"Bonnie in Sacramento" <kroko (AT) endofmyropesbcglobal (DOT) net> wrote in
message news:ces6h8$6v1$1 (AT) forums (DOT) macromedia.com...
Quote:
I'll try to show you tomorrow, Gary, if you're interested.
Since I don't actually UNDERSTAND PHP, I'm having trouble
converting the fields in the code I copied to the fields in
the form I actually need.

Do post back. Once the light bulb blinks on, you'll see that it's
really easy.

Just a little something to get you started. Assume that your form is
using POST for the method. In the form, you have a text input named
clyde:

<input type="text" name="clyde">

In the PHP code that handles the form, you would get the value the
user entered in that input like this:

$x=$_POST['clyde'];

The variable $x now contains the value the user typed in the text
input.

To now put that value into the mail message body, just embed it in a
string:

$msgbody="The user entered $x in clyde."

When you e-mail that:

mail($toaddress,$subject, $msgbody);

Assume the user typed the word banana (for example) in the input, the
message body in the e-mail would be:

The user entered banana in clyde.

Gary




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

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



Bonnie in Sacramento wrote:

Quote:
Thanks, Gary. I decided to try to run before I walked and went back to
lessons one and two. I tried to integrate the validation from lesson
two with the initial form in lesson one, but after I uploaded I got this
error message:

Parse error: parse error in
/mydomainename/public_html/Bonnie/phpmail.php on line 75

This is my code: line 75 is the very last line, <\html
Normally, when you get an error pointing to the end of the file, it's an
indication that you have a mismatch in your {braces}. That's true in
this case. You need a closing brace here:

Quote:
echo "Message failed to send";
} // add this

Quote:
}
?
/body
/html> <======= This is line 75.


Gary


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

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



Gary White wrote:

Quote:
Normally, when you get an error pointing to the end of the file, it's an
indication that you have a mismatch in your {braces}. That's true in
this case. You need a closing brace here:


echo "Message failed to send";


} // add this


}
?
/body
/html> <======= This is line 75.




Gary
Thanks again, Gary! Damn, you're fast!! :-D I'll keep you posted.
--
Bonnie in Sacramento
kroko at
sbcglobal dot net
http://www.theanimalrescuesite.com/cgi-bin/WebObjects/CTDSites.woa


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

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



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?

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

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.