This is a discussion on "Email form in Dreamweaver" within the Starting Out section. This forum, and the thread "Email form in Dreamweaver are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Email form in Dreamweaver
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Email form in Dreamweaver
Hi,
I am a 2D graphic designer who is starting to dabble in web design (in Dreamweaver) for friends, trying to set up a booking form that can be emailed to one recipient... having followed all the tutorials I could find, when I test the form and press SUBMIT button, all that happens is my email browser opens.... I am not using any PSP coding or anything. What do I need to do to ensure the form works correctly? I am completely tech jargon blind, so the simpler the reply in everyday language the better. Cheers |
|
|
|
#2
|
|||
|
|||
|
Re: Email form in Dreamweaver
Find out if your webhost has cgi formmail installed. If they do, then ask them if they have a help file on how to set that up. It's the easiest way to send info through a form.
|
|
#3
|
|||
|
|||
|
Re: Email form in Dreamweaver
Yeah, or you could use PHP, if they have that installed...that is also pretty simple.
|
|
#4
|
|||
|
|||
|
Dreamweaver forms
Hi, thanks all for your replies regarding email forms in dreamweaver - i am almost there now BUT have learnt that Dreamweaver needs additional extensions added to enable information from a form to be emailed... is this correct and if so, what extention is best for me to download and add?
Cheers Julian |
|
#5
|
|||
|
|||
|
Re: Dreamweaver forms
The preferred method for sending information from a form to an email is to use a server side language like PHP or ASP (.NET) or Perl. Here's a PHP Contact Script that I've used quite often.
The other unsafe way is to simple put your email address in the action
|
|
#6
|
|||
|
|||
|
Re: Dreamweaver forms
thanks for this... I had used php but obviously there is something wrong in the coding. Thanks for the code pages also.... I may be being stupid, as i do not read code very well (being a designer I tend to gloss over the small print) so are these three pages generically linked to each other already or do I have to do that... I have a form page created, can I simply cut and paste over your form, so long as I add our email address at the bottom of the coding?
Cheers Julian |
|
#7
|
|||
|
|||
|
Re: Dreamweaver forms
You should be able to just copy/paste those and name them like the tutorial named them and it should work. Just read through the instructions. It should explain the whole thing.
|
|
#8
|
|||
|
|||
|
Re: Dreamweaver forms
Hi...
have uploadd my form, but on sumbitting I get an error report on a certain line on the contact.php page.... line is : <?php }> is this correct? Cheers Julian |
|
#9
|
|||
|
|||
|
Re: Dreamweaver forms
can you give the whole code and the error please?
|
|
#10
|
|||
|
|||
|
Re: Dreamweaver forms
error report is
PHP Parse error: syntax error, unexpected '}' in F:\hshome\darlingt\darlingtonoperaticsociety.org.u k\Protected area\contact.php on line 121 have attached the page (re-saved as .htm so I can attach here) hope this helps Julian |
|
#11
|
|||
|
|||
|
Re: Dreamweaver forms
I don't see anything in the code that you need to close with the } I don't thing you don't need it at all ... remove it and see if that works.
|
|
#12
|
|||
|
|||
|
Re: Dreamweaver forms
done that, and it at least gets me back to the booking form... but now, when I press submit the following error occure... should I attach all 3 pages for you to check?
PHP Warning: session_start(): Cannot send session cookie - headers already sent by (output started at F:\hshome\darlingt\darlingtonoperaticsociety.org.u k\Protected area\contact.php:1) in F:\hshome\darlingt\darlingtonoperaticsociety.org.u k\Protected area\contact.php on line 1 there is more 'red' coding on top 2 lines of the original contact.php but on lines where you say DO NOT REMOVE THESE LINES |
|
#13
|
|||
|
|||
|
Re: Dreamweaver forms
From thank_you.php and contact.php, remove
In config.php, remove
|
|
#14
|
|||
|
|||
|
Re: Dreamweaver forms
OK... done both of those and error reports now disappeared... but form does not post - page just sits there as if pressing submit does not register anything
|
|
#15
|
|||
|
|||
|
Re: Dreamweaver forms
|
|
#16
|
|||
|
|||
|
Re: Dreamweaver forms
OK... have different error reports now, have to shoot off but will pick this back up tomorrow if that is ok...many thanks for your help so far
these are errors getting now PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at F:\hshome\darlingt\darlingtonoperaticsociety.org.u k\Protected area\thank_you.php:1) in F:\hshome\darlingt\darlingtonoperaticsociety.org.u k\Protected area\thank_you.php on line 1 PHP Warning: Cannot modify header information - headers already sent by (output started at F:\hshome\darlingt\darlingtonoperaticsociety.org.u k\Protected area\thank_you.php:1) in F:\hshome\darlingt\darlingtonoperaticsociety.org.u k\Protected area\thank_you.php on line 24 |
|
#17
|
|||
|
|||
|
Re: Dreamweaver forms
What do your pages look like now? Could you attach them?
|
|
#18
|
|||
|
|||
|
Re: Dreamweaver forms
Or you could give us a link...lol
|
|
#19
|
|||
|
|||
|
Re: Dreamweaver forms
well ... considering we're dealing with PHP, giving us a link won't make a lick of difference since we won't get to see the PHP
|
|
#20
|
|||
|
|||
|
Re: Dreamweaver forms |