|
||||||
| PHP Forum Use this forum to discuss all aspects of PHP Development. PHP is a server-side, cross-platform, HTML embedded scripting language that lets you create dynamic web pages. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||||
|
http://www.wncspacemakers.com/contac...ntactshane.php
1. I want to move the form to the middle of the CONTACT section. 2. After i click send. the code Code:
<?php
$printingVar = 'Thank you for sending this message. I\'ll get to you soon.';
mail("shane@wncspacemakers.com",htmlentities($_POST['subject']), "Message from ". htmlentities($_POST['emailaddress']) ."\n". htmlentities($_POST['message']),'From: '. htmlentities($_POST['emailaddress']));
$email = "";
$subject = "";
$message = "";
}
?>
<p>
3. It wont send the e-mail here is the code Code:
<?php
$printingVar = 'Thank you for sending this message. I\'ll get to you soon.';
mail("shane@wncspacemakers.com",htmlentities($_POST['subject']), "Message from ". htmlentities($_POST['emailaddress']) ."\n". htmlentities($_POST['message']),'From: '. htmlentities($_POST['emailaddress']));
$email = "";
$subject = "";
$message = "";
}
?>
<p><br>
</p>
<form method="post" action="contact.php?page=contactshane.php">
<div align="center">
<table cellpadding="1" cellspacing="0" >
<tr>
<td style="height: 20px; width: 20%; color: #FF6600; font-size : 11px; font-family : Tahoma,Verdana,Arial; font-weight: bold;" >Your email: </td>
<td style="width: 20%;" ><input type="text" name="emailaddress" style="width: 200px;" /></td>
</tr>
<tr>
<td style="height: 20px; width: 20%; color: #FF6600; font-size : 11px; font-family : Tahoma,Verdana,Arial; font-weight: bold;" >Subject: </td>
<td style="width: 20%;" ><input type="text" name="subject" style="width: 200px;" /></td>
</tr>
<tr>
<td style="vertical-align: top; width: 20%; color: #FF6600; font-size : 11px; font-family : Tahoma,Verdana,Arial; font-weight: bold;" >Your message:</td>
<td style="width: 20%;" >
<textarea name="message" rows="10" cols="5" style="width: 200px;" >Type Your Message Here</textarea>
</td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="submitContact" value="Send Message" /></td>
<td> </td>
</tr>
</table>
</div>
</form>
<table border="0" cellpadding="5" cellspacing="0">
Last edited by Jordan; 10-16-2006 at 03:25 PM. |
| Sponsored Links |
|
|
|
|||||
|
ok i fixed that. SO the Var message still isnt working. and the e-mail still didnt get sent.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum | My Company Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall ![]() ![]() |
|
|||||
|
Before the closing brackett } add:
PHP Code:
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog The CodeCall Wiki is now fully integrated with vBulletin users! Check it out and add some new pages! |
| Sponsored Links |
|
|
|
|||||
|
Quote:
Maybe i just need a new form.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum | My Company Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall ![]() ![]() Last edited by Jordan; 10-16-2006 at 03:25 PM. |
|
|||||
|
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum | My Company Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall ![]() ![]() |
|
|||||
|
Problems solved. He had a file pulling in a PHP file that was displaying it like Text.
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog The CodeCall Wiki is now fully integrated with vBulletin users! Check it out and add some new pages! |
|
|||||
|
JORDAN IS THE KING OF CODE
![]()
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum | My Company Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall ![]() ![]() |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Project: Easy Contact | Jordan | easyContact | 34 | 11-17-2008 06:27 PM |
| Peculiar UI Problem Needs Tackling | adriyel | C# Programming | 2 | 04-06-2008 08:46 AM |
| Coding a change password form | InternetGeek | Visual Basic Programming | 11 | 02-16-2008 02:53 PM |
| Calling a form from another form | Void | Managed C++ | 1 | 07-01-2006 10:44 AM |
| WingedPanther | ........ | 2753.6 |
| Xav | ........ | 2704 |
| Brandon W | ........ | 1702.32 |
| John | ........ | 1207.73 |
| marwex89 | ........ | 1175.24 |
| morefood2001 | ........ | 966.05 |
| dcs | ........ | 655.75 |
| Steve.L | ........ | 475.59 |
| orjan | ........ | 418.58 |
| Aereshaa | ........ | 383.54 |
Goal: 100,000 Posts
Complete: 98%