Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > BOOK: XSLT Programmer's Reference, 2nd Edition
Password Reminder
Register
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 software programmers and website developers 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 developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Closed Thread
 
Thread Tools 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);}

?>

  #2 (permalink)  
Old May 23rd, 2008, 02:33 AM
Friend of Wrox
 
Join Date: Aug 2005
Location: Cochin, Kerala, India.
Posts: 184
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.
  #3 (permalink)  
Old May 23rd, 2008, 02:47 AM
samjudson's Avatar
Friend of Wrox
Points: 8,448, Level: 39
Points: 8,448, Level: 39 Points: 8,448, Level: 39 Points: 8,448, Level: 39
Activity: 37%
Activity: 37% Activity: 37% Activity: 37%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,088
Thanks: 1
Thanked 181 Times in 180 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 -/
  #4 (permalink)  
Old May 23rd, 2008, 03:53 AM
Friend of Wrox
 
Join Date: Aug 2005
Location: Cochin, Kerala, India.
Posts: 184
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.
  #5 (permalink)  
Old September 29th, 2011, 01:19 AM
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2011
Location: Joliet, Illinois
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default NO!

You can do sum syntax on your own.
__________________
The commitment of quality and cost effectiveness.
Closed Thread


Thread Tools
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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are 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



All times are GMT -4. The time now is 05:42 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.