I tried this code its working fine ;) plz try to execute mannually in linux shell..
make sure that opening _HTML_ should followed by a newline (there should not be whitespace)and dont put any whitespace (indent) before closing _HTML_ sample code <? print <<<ANY_LABEL try this, works fine. ANY_LABEL; print "\r\n<p><strong>dubai_lug</strong>"; ?> pls refer this page http://www.php.net/echo I like this very much and enjoy the beauty of "Here document". ~yasir~ --- In [email protected], "aLT WiZard" <[EMAIL PROTECTED]> wrote: > > Hey, > Plz tell me whats wrong in this code. > <?php // Print a greeting if the form was submitted > if ($_POST['user']) { > print "Hello, "; > // Print what was submitted in the form parameter called 'user' > print $_POST['user']; > print "!"; > } else { > // Otherwise, print the form > print <<<_HTML_ > <form method="post" action="$_SERVER[PHP_SELF]"> > Your Name: <input type="text" name="user"> > <br/> > <input type="submit" value="Say Hello"> > </form> > _HTML_; > } > ?> > > I get a blank white page, Im guessing there is something wrong in the else > statement, Is this the right way to put HTML and PHP together in a print > statement ??? > > Thanks. > ------------------------ Yahoo! Groups Sponsor --------------------~--> See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/0XFolB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/dubailug/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
