|
|
|
|
Thread title: Contact Form |
|
|
|
|
|
Thread tools
Search this thread
Display Modes
|
|
12-13-2005, 04:06 AM
|
#11
|
Status: TF Veteran
Join date: Jan 2005
Location:
Expertise:
Software:
Posts: 3,258
|
when i remove the NAME input field, it doesnt send...
and when its there, when i recieve emails, the name they input is automatically saved into my address book,
which is why i want the name field removed, and the FROM field (when i recieve an email) to be the email they input
|
|
12-13-2005, 04:32 AM
|
#12
|
Status: Request a custom title
Join date: Sep 2005
Location: Texas
Expertise:
Software:
Posts: 1,139
|
contact me on Msn...its under the Age/posts/join date etc.
|
|
12-13-2005, 04:51 AM
|
#13
|
Status: Senior Member
Join date: May 2005
Location: Sask, Canada
Expertise:
Software:
Posts: 911
|
Code:
<?php
$email = $_POST['email'] ;
$subject = $_POST['subject'] ;
$message = $_POST['message'] ;
if (!isset($_POST['name'])) {
?>
<form method="post" action="<?php echo("$php_self"); ?>">
Email:<br />
<input name="email" type="text" style="margin: 0px 0px 5px 0px;" /><br />
Subject:<br />
<input name="subject" type="text" style="margin: 0px 0px 5px 0px;" /><br />
Message:<br />
<textarea name="message" rows="" cols="" style="margin: 0px 0px 5px 0px;"></textarea><br />
<input name="send" type="submit" class="submit" value="Send" alt="Send" />
</form>
<?php
}
elseif || empty($email) || empty($subject) || empty($message)) {
echo("<p>Please fill out the form completely!</p>");
}
else {
mail("likuidsmoke@gmail.com","$subject","$message","From: $email");
echo("<p>Your email has been sent, allow a few days for a response. Thank you!</p>");
}
?>
Try that.
|
|
12-13-2005, 12:52 PM
|
#14
|
Status: TF Veteran
Join date: Jan 2005
Location:
Expertise:
Software:
Posts: 3,258
|
thanks xbox, but me and dray figured it out
|
|
12-13-2005, 03:24 PM
|
#15
|
Status: Member
Join date: Dec 2005
Location:
Expertise:
Software:
Posts: 292
|
You should make the Message box larger, for the contact page.
|
|
12-13-2005, 03:42 PM
|
#16
|
Status: TF Veteran
Join date: Jan 2005
Location:
Expertise:
Software:
Posts: 3,258
|
|
|
12-13-2005, 10:07 PM
|
#17
|
Status: Request a custom title
Join date: Nov 2004
Location: New York City
Expertise:
Software:
Posts: 1,164
|
no problem
and u just gotta remove the name field and then where it says if(!isset... change name to email or w/e. thats probably what u fixed anyway just makin sure
|
|
12-13-2005, 10:46 PM
|
#18
|
Status: TF Veteran
Join date: Jan 2005
Location:
Expertise:
Software:
Posts: 3,258
|
yup yup thanks!
|
|
12-14-2005, 04:48 AM
|
#19
|
Status: Member
Join date: Dec 2005
Location:
Expertise:
Software:
Posts: 292
|
Originally Posted by blindchild02
larger, width or height?
|
Many contact forms have a good box size for the message area so I'd say make the width and height larger, something like this: http://www.sconner.net/?p=contact
|
|
12-14-2005, 04:50 AM
|
#20
|
Status: Sin Binner
Join date: Jul 2004
Location: Yorkshire Coast - UK
Expertise:
Software:
Posts: 5,911
|
This came in handy, thanks
|
|
|
|
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|