Connecting Tech Pros Worldwide Forums | Help | Site Map

Generating email from Form Input

Olumide
Guest
 
Posts: n/a
#1: Jul 23 '05
I have a form on my webpage. I would like visitors to complete this
form and click a send button that generates an email. How can this be
done? With Javascript of PHP? In either case, please send me pointers
to where I can find more information. (I am an utter PHP noob.)

Thanks,

- Olumide

Tony Marston
Guest
 
Posts: n/a
#2: Jul 23 '05

re: Generating email from Form Input


In my infrastructure I have a separate class for each business entity
(database table) but each of these class instances communicate to the
database through a single DML class instance. The trick is to create the DML
instance in a global variable where it can be accessed by any and all
business entity instances.

I have put together a sample application (described in
http://www.tonymarston.net/php-mysql...plication.html) which can be
run online. You can also download all the source code to see how it is done.

Hope this helps.

--
Tony Marston

http://www.tonymarston.net



"Olumide" <50295@web.de> wrote in message
news:c837e7e8.0406050300.3e28cee7@posting.google.c om...[color=blue]
> I have a form on my webpage. I would like visitors to complete this
> form and click a send button that generates an email. How can this be
> done? With Javascript of PHP? In either case, please send me pointers
> to where I can find more information. (I am an utter PHP noob.)
>
> Thanks,
>
> - Olumide[/color]


Tony Marston
Guest
 
Posts: n/a
#3: Jul 23 '05

re: Generating email from Form Input


Whoops. Ignore this. I replied to the wrong question.

Tony Marston

"Tony Marston" <tony@NOSPAM.demon.co.uk> wrote in message
news:c9sa7n$69d$1$8300dec7@news.demon.co.uk...[color=blue]
> In my infrastructure I have a separate class for each business entity
> (database table) but each of these class instances communicate to the
> database through a single DML class instance. The trick is to create the[/color]
DML[color=blue]
> instance in a global variable where it can be accessed by any and all
> business entity instances.
>
> I have put together a sample application (described in
> http://www.tonymarston.net/php-mysql...plication.html) which can be
> run online. You can also download all the source code to see how it is[/color]
done.[color=blue]
>
> Hope this helps.
>
> --
> Tony Marston
>
> http://www.tonymarston.net
>
>
>
> "Olumide" <50295@web.de> wrote in message
> news:c837e7e8.0406050300.3e28cee7@posting.google.c om...[color=green]
> > I have a form on my webpage. I would like visitors to complete this
> > form and click a send button that generates an email. How can this be
> > done? With Javascript of PHP? In either case, please send me pointers
> > to where I can find more information. (I am an utter PHP noob.)
> >
> > Thanks,
> >
> > - Olumide[/color]
>
>[/color]


Hywel
Guest
 
Posts: n/a
#4: Jul 23 '05

re: Generating email from Form Input


In article <c837e7e8.0406050300.3e28cee7@posting.google.com >, Olumide
says...[color=blue]
> I have a form on my webpage. I would like visitors to complete this
> form and click a send button that generates an email. How can this be
> done? With Javascript of PHP? In either case, please send me pointers
> to where I can find more information. (I am an utter PHP noob.)[/color]

PHP - read the info. on the mail() function in the PHP documentation.
It's very straightforward.

--
Hywel I do not eat quiche
http://kibo.org.uk/
http://kibo.org.uk/mfaq.php
Marian Heddesheimer
Guest
 
Posts: n/a
#5: Jul 23 '05

re: Generating email from Form Input


On 5 Jun 2004 04:00:43 -0700, 50295@web.de (Olumide) wrote:
[color=blue]
>I have a form on my webpage. I would like visitors to complete this
>form and click a send button that generates an email.[/color]

You can create such a PHP-script with my Online Form-Generator and
receive the PHP-Code via E-Mail:

http://www.rent-a-tutor.com/tools

Best Regards

Marian

--
Internet-Dienstleistungen - von der Webseite bis zum Online-Shop
http://www.heddesheimer.de mailto:marian@heddesheimer.de
Robert
Guest
 
Posts: n/a
#6: Jul 23 '05

re: Generating email from Form Input


50295@web.de (Olumide) wrote in message news:<c837e7e8.0406050300.3e28cee7@posting.google. com>...[color=blue]
> I have a form on my webpage. I would like visitors to complete this
> form and click a send button that generates an email. How can this be
> done? With Javascript of PHP? In either case, please send me pointers
> to where I can find more information. (I am an utter PHP noob.)
>
> Thanks,
>
> - Olumide[/color]

The server program cgiemail may do what you want. The user fills out
an html form, the form data get posted to the server, cgiemail gets
invoked, cgiemail uses a template to generate an email, and cgiemail
sends the email to whoever is specified in the template.

For more details on cgiemail, see:

http://web.mit.edu/wwwdev/cgiemail/

There are other free email form servers that you can use and that you
do not have to install. Some are mentioned in ths group, but I
couldn't come up with an accurate google search.

Robert
Closed Thread