Posted by cover on 01/26/06 04:55
Actually what I'm wanting to do is input the data into a MySQL
database (which I have done successfully) and also email data off that
form through a mail server at the same time (which I have done
successfully separately - in other words, I haven't achieved both
results off a single click of the 'submit' button). BUT...
Shouldn't doing a form action / method="post" twice in the same form
send the info in both directions as below?
<form action="process2.php" method="post">
<form action="process3.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>
Also in taking the model to work, I discovered severe security over
the email system so I'm looking to set up an SMTP mail server onto the
server I've been working with - the work one will accept from this one
if I can get it going. Am using Apache on a Windows server. Thanks
for the reply Jerry...
Chris
On Wed, 25 Jan 2006 12:47:09 -0500, Jerry Stuckle
<jstucklex@attglobal.net> wrote:
>
>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?
[Back to original message]
|