You are here: Re: Emailing Form Data « All PHP « IT news, forums, messages
Re: Emailing Form Data

Posted by Jerry Stuckle on 01/25/06 19:47

cover wrote:
> A follow up question:
>
> Writing values to the db with the MySQL query INSERT INTO code doesn't
> like sharing with the code that initiates the email so, is it common
> practice to initiate TWO actions from the input form shown below? i.e.
> to use <form action="process2.php" method="post"> twice in a row on
> the input form? Once for example to initiate INSERT INTO the database
> and the second <form action="process3.php" method="post"> right below
> it to initiate the email code on process3.php? Seems like a pretty
> clean way of dealing with it, thoughts anyone? Otherwise I need to
> figure out how to do the INSERT INTO and then continue on to
> initiating the email code. Thanks very much.
>
> On Mon, 23 Jan 2006 20:54:34 -0800, cover
> <coverlandNOSPAM914@yahoo.com> wrote:
>
>
>
>>My input form is as follows:
>><form action="process2.php" method="post">
>>From: <input type="text" name="from" size="20" maxlength="20" /><br />
>>To: <input type="text" name="to" size="30" maxlength="30" /><br />
>>Subject: <input type="text" name="subject" size="30" maxlength="30"
>>/><br />
>>Message:<textarea name="text" name="message" cols="50"
>>rows="10"></textarea><br />
>><input type="submit" name="submit" value="Send" />
>></form>

Rather, I'd look into what problem you're having with both sending the
email and inserting into the database. It should work OK.

Having two different forms means the user would have to click on two
buttons in order. What if he only clicks on one of them?



--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация