Lost Password?


Go Back   CodeCall Programming Forum > Web Development Forum > PHP Forum

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.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-16-2006, 02:43 PM
xXHalfSliceXx's Avatar   
xXHalfSliceXx xXHalfSliceXx is offline
Co-Administrator
 
Join Date: Oct 2006
Location: Hendersonville, NC
Age: 24
Posts: 1,227
Rep Power: 20
xXHalfSliceXx is on a distinguished road
Send a message via AIM to xXHalfSliceXx Send a message via MSN to xXHalfSliceXx Send a message via Yahoo to xXHalfSliceXx
Angry Problem with Contact Form

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>
Does not work.

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>&nbsp;</td>
  <td><input type="submit" name="submitContact" value="Send Message" /></td>
  <td>&nbsp;</td>
 </tr>
</table>
</div>
</form>
<table border="0" cellpadding="5" cellspacing="0">

Last edited by Jordan; 10-16-2006 at 03:25 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 10-16-2006, 02:46 PM
Lop's Avatar   
Lop Lop is offline
Speaks fluent binary
 
Join Date: May 2006
Posts: 1,149
Rep Power: 18
Lop will become famous soon enoughLop will become famous soon enough
Default

Ahh, you have a syntax error. See the }, you need to add ?> after it like this:

PHP 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 "";
 }
?>
__________________
Lop

Last edited by Jordan; 10-16-2006 at 03:25 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 10-16-2006, 02:56 PM
xXHalfSliceXx's Avatar   
xXHalfSliceXx xXHalfSliceXx is offline
Co-Administrator
 
Join Date: Oct 2006
Location: Hendersonville, NC
Age: 24
Posts: 1,227
Rep Power: 20
xXHalfSliceXx is on a distinguished road
Send a message via AIM to xXHalfSliceXx Send a message via MSN to xXHalfSliceXx Send a message via Yahoo to xXHalfSliceXx
Default

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




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 10-16-2006, 03:04 PM
Lop's Avatar   
Lop Lop is offline
Speaks fluent binary
 
Join Date: May 2006
Posts: 1,149
Rep Power: 18
Lop will become famous soon enoughLop will become famous soon enough
Default

What is that } for?
Looks like a rogue brackett.
__________________
Lop
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 10-16-2006, 03:15 PM
Jordan's Avatar   
Jordan Jordan is offline
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Posts: 9,232
Last Blog:
Ext JS or Ext GWT
Rep Power: 20
Jordan is just really niceJordan is just really niceJordan is just really niceJordan is just really nice
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan
Default

Before the closing brackett } add:

PHP Code:
print "$printingVar"
See if that shows the "Thank You" 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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 10-16-2006, 03:19 PM
xXHalfSliceXx's Avatar   
xXHalfSliceXx xXHalfSliceXx is offline
Co-Administrator
 
Join Date: Oct 2006
Location: Hendersonville, NC
Age: 24
Posts: 1,227
Rep Power: 20
xXHalfSliceXx is on a distinguished road
Send a message via AIM to xXHalfSliceXx Send a message via MSN to xXHalfSliceXx Send a message via Yahoo to xXHalfSliceXx
Default

Quote:
Originally Posted by Jordan View Post
Before the closing brackett } add:

PHP Code:
print "$printingVar"
See if that shows the "Thank You" text.
nope...... l;kajsd;flkjaf

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 10-16-2006, 03:21 PM
xXHalfSliceXx's Avatar   
xXHalfSliceXx xXHalfSliceXx is offline
Co-Administrator
 
Join Date: Oct 2006
Location: Hendersonville, NC
Age: 24
Posts: 1,227
Rep Power: 20
xXHalfSliceXx is on a distinguished road
Send a message via AIM to xXHalfSliceXx Send a message via MSN to xXHalfSliceXx Send a message via Yahoo to xXHalfSliceXx
Default

__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum | My Company
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 10-16-2006, 04:32 PM
Jordan's Avatar   
Jordan Jordan is offline
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Posts: 9,232
Last Blog:
Ext JS or Ext GWT
Rep Power: 20
Jordan is just really niceJordan is just really niceJordan is just really niceJordan is just really nice
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan
Default

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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 10-16-2006, 04:39 PM
xXHalfSliceXx's Avatar   
xXHalfSliceXx xXHalfSliceXx is offline
Co-Administrator
 
Join Date: Oct 2006
Location: Hendersonville, NC
Age: 24
Posts: 1,227
Rep Power: 20
xXHalfSliceXx is on a distinguished road
Send a message via AIM to xXHalfSliceXx Send a message via MSN to xXHalfSliceXx Send a message via Yahoo to xXHalfSliceXx
Default

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




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 10-16-2006, 05:44 PM
Crane's Avatar   
Crane Crane is offline
Programming Expert
 
Join Date: Nov 2005
Posts: 399
Rep Power: 14
Crane is on a distinguished road
Default

I don't see any errors? I'm guessing that this is not the entire code?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

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


All times are GMT -5. The time now is 05:38 PM.

Contest Stats

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

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 98%

Ads