Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Form Processor Help... Again.
Old 12-31-2003, 09:42 PM Form Processor Help... Again.
Chris_krasnichu's Avatar
Ultra Talker

Posts: 331
Location: Ontario, Canada
Trades: 0
When it comes to this page from the form it says theres an error on line 25 but I can't find it.
heres the code:
Code:
<?php


if ($process == 'apply') { // Check What form they are using.

$process = $_GET['process'];
$fullname = $_POST['fullname'];
$xbuser = $_POST['xboxusername'];
$time = $_POST['time'];
$email = $_POST['email'];
$skill = $_POST['skill'];

if ($fullname == '' or $xbuser == '' or $time == '' or $email == '' or $skill == '') { // Check for Empty Inputs
?>
<script>
document.window.location="index.php?pn=apply&error=1";
</script>
<?php
} else {

$emailaddresses = "chris@dragongames.ca, {$email}";

$subject = "Application"

LINE 25  $mailbody = "<table>
              <tr>
               <td>
							 <div align=left>
							 Hello:<BR>
							 We have received your application.<BR>
							 We will get back to you soon.<BR>
							 Below is the information you have sent us.<BR>
							 If you find anything that is wrong please email: <a href=mailto:chris@dragongames.ca?SUBJECT=Application Mistake>Chris Krasnichuk</a><BR>
							 <table cellpadding=3 cellspacing=1>
							  <tr>
								 <td>
								 Full Name:
								 </td>
								 <td>
								 $fullname
								 </td>
								</tr>
								<tr>
								 <td>
								 Xbox Live Username:
								 </td>
								 <td>
								 $xbuser
								 </td>
								</tr>
								<tr>
								 <td>
                 Time:
								 </td>
								 <td>
								 $time
								 </td>
								</tr>
								<tr>
								 <Td>
								 Email:
								 </td>
								 <td>
								 $email
								 </td>
								</tr>
								<tr>
								 <td>
								 Skill Level:
								 </td>
								 <td>
								 $skill
								 </td>
								</tR>
								</table>";
mail($emailaddresses, $subject, $mailbody,
        "From: $email1\n" . 
        "MIME-Version: 1.0\n" . 
        "Content-type: text/html; charset=iso-8859-1");
 }
}
?>
Thanks for the help in advance.

Chris
__________________
Name: Chris Krasnichuk
Email Address:
Please login or register to view this content. Registration is FREE
Chris_krasnichu is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-01-2004, 03:17 AM
ACJavascript's Avatar
Humble Mod

Posts: 548
Location: CT, USA
Trades: 0
Try closing each line.


" code ";
" code ";

instead of just one big "



code



";
__________________

Please login or register to view this content. Registration is FREE
- 100 Satisfied Customers - Custom Programming and Web Development
ACJavascript is offline
Reply With Quote
View Public Profile Visit ACJavascript's homepage!
 
Old 01-01-2004, 01:17 PM
Chris_krasnichu's Avatar
Ultra Talker

Posts: 331
Location: Ontario, Canada
Trades: 0
Thanks, But I found the problem.
Notice that there is no ";" after the sting on line 23.
I fixed that and it worked fine.
Thanks.

Chris
__________________
Name: Chris Krasnichuk
Email Address:
Please login or register to view this content. Registration is FREE
Chris_krasnichu is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Form Processor Help... Again.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11202 seconds with 12 queries