|
|
 |
BOOK: XSLT Programmer's Reference, 2nd Edition  | This is the forum to discuss the Wrox book XSLT: Programmer's Reference, 2nd Edition by Michael Kay; ISBN: 9780764543814 |
|
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: XSLT Programmer's Reference, 2nd Edition section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other programmers’ questions, win occasional prizes given to our best members, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
|
 |
|
|
 |

May 23rd, 2008, 02:23 AM
|
|
Registered User
|
|
Join Date: May 2008
Location: kottayam, kerala, India.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Parse error: syntax error, unexpected T_ELSE in /h
sir ,
please correct it
<?php
$d7=$_POST['D7'];
$name=$_POST['name'];
$email=$_POST['email'];
$place=$_POST['place'];
$phone=$_POST['phoneno'];
$address=$_POST['address'];
$comments=$_POST['message'];
$d8=$_POST['d8'];
$subject = "Get A membership ";
$txt = "<html><head><title>pramod</title></head>
<body>
name :".$d7.$name."
email:".$email. "
place:".$place. "
phone:".$phone. "
address:".$address. "
comments:".$comments. "
course:".$d8.$course."
</body></html>";
$headers = "From: " . "$name" . "<" . "vipinkottacal@gmail.com" . ">\n";
$headers .= "User-Agent: Mail/1.0.0\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "X-Sender: <" . "$to" . ">\n";
$headers .= "Return-Path: <" . "to" . ">\n";
$headers .= "Error-To: <" . "to" . ">\n";
$headers .= "Content-Type: text/html;charset=utf-8\n";
$headers .= "Content-Transfer-Encoding: 8bit\n";
$headers .= "X-Priority: 3 (Normal)\n";
$headers .= "Importance: Normal\n";
//$to = "togetpramod@gmail.com";
$subject = "My subject";
$subject02 = "my cv";
if ($course=$_POST['animation']);
{$to="arunkrishnanasatorqe@gmail.com";
mail($to,$subject02,$txt,$headers);}
else {
if {$course=$_POST['hardware']);
$to="vipinkottackal@gmail.com";
mail($to,$subject,$txt,$headers);}
else {
if ($course=$_POST['business']);
$to="fryacob@gmail.com";
mail($to,$subject,$txt,$headers);}
?>
|

May 23rd, 2008, 02:33 AM
|
|
Friend of Wrox
|
|
Join Date: Aug 2005
Location: Cochin, Kerala, India.
Posts: 183
Thanks: 4
Thanked 0 Times in 0 Posts
|
|
post it to correct forum
php else if is like this
<?php
$d=date("D");
if ($d=="Fri")
echo "Have a nice weekend!";
elseif ($d=="Sun")
echo "Have a nice Sunday!";
else
echo "Have a nice day!";
?>
jomet.
`````````````````````````````````````````````````` ``````````````````````
Once you start a working on something, dont be afraid of failure and dont abandon it.
People who work sincerely are the happiest.
|

May 23rd, 2008, 02:47 AM
|
 |
Friend of Wrox
|
|
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 1,494
Thanks: 0
Thanked 60 Times in 60 Posts
|
|
Please correct what?
a) WRONG FORUM (I mean REALLY wrong).
b) You've not told us what the problem is?
/- Sam Judson : Wrox Technical Editor -/
|

May 23rd, 2008, 03:53 AM
|
|
Friend of Wrox
|
|
Join Date: Aug 2005
Location: Cochin, Kerala, India.
Posts: 183
Thanks: 4
Thanked 0 Times in 0 Posts
|
|
w3 schools is a good source for your study.
http://www.w3schools.com/php/php_if_else.asp
jomet.
`````````````````````````````````````````````````` ``````````````````````
Once you start a working on something, dont be afraid of failure and dont abandon it.
People who work sincerely are the happiest.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| Ch 4: Parse error: syntax error, unexpected T_SL |
hanizar77 |
BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 |
0 |
June 23rd, 2008 09:17 PM |
| Parse error: syntax error, unexpected T_STRING |
ginost7 |
Beginning PHP |
1 |
November 9th, 2007 01:51 AM |
| PHP Parse error: parse error, unexpected T_STRING |
geminient |
PHP How-To |
4 |
August 18th, 2007 02:27 AM |
| Parse error: parse error, unexpected $end |
Ayodeji Adegbaju |
Pro PHP |
3 |
January 12th, 2007 11:21 AM |
| parse error, unexpected T_IF |
ajit_kunte |
BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1 |
1 |
May 6th, 2005 09:27 AM |
|
 |