p2p.wrox.com Forums

Need to download code?

View our list of code downloads.

Go Back   p2p.wrox.com Forums > XML > BOOK: XSLT Programmer's Reference, 2nd Edition
I forgot my password
Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 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
Send a message via AIM to vipin k varghese
Default 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);}

?>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old May 23rd, 2008, 02:33 AM
Friend of Wrox
Points: 601, Level: 9
Points: 601, Level: 9 Points: 601, Level: 9 Points: 601, Level: 9
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2005
Location: Cochin, Kerala, India.
Posts: 183
Thanks: 4
Thanked 0 Times in 0 Posts
Default

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old May 23rd, 2008, 02:47 AM
samjudson's Avatar
Friend of Wrox
Points: 5,210, Level: 30
Points: 5,210, Level: 30 Points: 5,210, Level: 30 Points: 5,210, Level: 30
Activity: 97%
Activity: 97% Activity: 97% Activity: 97%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 1,494
Thanks: 0
Thanked 60 Times in 60 Posts
Default

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 -/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #4 (permalink)  
Old May 23rd, 2008, 03:53 AM
Friend of Wrox
Points: 601, Level: 9
Points: 601, Level: 9 Points: 601, Level: 9 Points: 601, Level: 9
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2005
Location: Cochin, Kerala, India.
Posts: 183
Thanks: 4
Thanked 0 Times in 0 Posts
Default


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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


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

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

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



All times are GMT -4. The time now is 03:04 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© 2010 Wiley Publishing, Inc