 |
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|

May 23rd, 2008, 02:23 AM
|
Registered User
|
|
Join Date: May 2008
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
|
|
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
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 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
|
|
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.
|

September 29th, 2011, 01:19 AM
|
Registered User
|
|
Join Date: Sep 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
NO!
You can do sum syntax on your own.
|
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 02: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 12:21 PM |
parse error, unexpected T_IF |
ajit_kunte |
BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1 |
1 |
May 6th, 2005 09:27 AM |
|
 |