Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
sda #1
PHP and contact form
I'm a virgin at PHP, so go easy. :)
I have a contact form and a separate PHP script that I'm attempting to author.
I have no problem with it working with my server, however I can't get the
appropriate fields to populate in the generated e-mail.
Here is my form:
<form action="includes/php_scripts/send-mail-sda.php" method="post"
enctype="multipart/form-data" name="contactMe" id="contact_form">
<p align="center">The time is<span class="style5"> <?php echo date("h:i:s a",
time())?></span> local</p>
<p>First Name :
&n bsp;
<input name="FirstName" type="text" id="FirstName" size="35" />
</p>
<p>LastName:
&n bsp; &nbs p;
<input name="LastName" type="text" id="LastName" size="35" />
</p>
<p>Message:</p>
<div class="message-area">
<div align="center">
<input type="submit" name="Submit" value="Submit" />
<textarea name="Message_area" cols="50" rows="30" id="Message_area"></textarea>
<input name="Submit-reset" type="reset" id="Submit-reset" value="Clear" />
</div>
</div>
</form>
And... here is my "send-mail-sda" script:
<?PHP mail ("steve123@localhost", "contact-form-submission", "message",
$message = ("Message_area") .
"Reply-To: {sd_a@msn.com}\r\n" .
"X-Mailer: PHP/" . phpversion());?>
How can I get the input types to populate the sent e-mail? I've got a PHP
reference book, but I can't find an example of a contact form.
Muchly appreciated.
sda Guest
-
contact form
Can anyone help me. I have a contact form on my site it works ok when anyone submits the form and the confirmation page opens ok. The prob I have... -
Contact form with DateField
I hope someone can help me with this because I can't get it to work myself. I have created an contact form with Flash and in this form there is a... -
Flash Contact Us Form
Hey Everyone, I need to get a contact us form in a flash site to send an email to me when someone submits it. I bought a template... -
Contact Us Form
Can somebody please give me a simple script for a form that is going to be sent to design@netzed.co.uk. Has a text field for contact name, email... -
Guide to stting up a contact form ?
Hi, Are there any guides to how to set up a contact form ? At the very least a basic tutorial (my host uses CDONTS) and at best one which... -
sda #2
PHP and contact form
I'm a virgin at PHP, so go easy. :)
I have a contact form and a separate PHP script that I'm attempting to author.
I have no problem with it working with my server, however I can't get the
appropriate fields to populate in the generated e-mail.
Here is my form:
<form action="includes/php_scripts/send-mail-sda.php" method="post"
enctype="multipart/form-data" name="contactMe" id="contact_form">
<p align="center">The time is<span class="style5"> <?php echo date("h:i:s a",
time())?></span> local</p>
<p>First Name :
&n bsp;
<input name="FirstName" type="text" id="FirstName" size="35" />
</p>
<p>LastName:
&n bsp; &nbs p;
<input name="LastName" type="text" id="LastName" size="35" />
</p>
<p>Message:</p>
<div class="message-area">
<div align="center">
<input type="submit" name="Submit" value="Submit" />
<textarea name="Message_area" cols="50" rows="30" id="Message_area"></textarea>
<input name="Submit-reset" type="reset" id="Submit-reset" value="Clear" />
</div>
</div>
</form>
And... here is my "send-mail-sda" script:
<?PHP mail ("steve123@localhost", "contact-form-submission", "message",
$message = ("Message_area") .
"Reply-To: {sda@msn.com}\r\n" .
"X-Mailer: PHP/" . phpversion());?>
How can I get the input types to populate the sent e-mail? I've got a PHP
reference book, but I can't find an example of a contact form.
Muchly appreciated.
sda Guest



Reply With Quote

