RE: RE: [PHP] formtext

From: Date: Mon, 03 Mar 2003 12:41:13 +0000
Subject: RE: RE: [PHP] formtext
Groups: php.general 
Request: Send a blank email to php-general+get-137881@lists.php.net to get a copy of this message
Hi Diksha, > Parse error: parse error, expecting ','' or > ';'' in > /var/www/html/bdoi_change/f1.php on line 11 > > the code is: > > <?php > echo"<form> > Please enter other login id:<input type="text" name=login> > </form>"; You need to escape the quotes inside the string, or use single quotes to define it. Either this: echo "<form>Please enter other login id:<input type=\"text\" name=\"login\"></form>"; ^^ ^^ ^^ ^^ note escaped quotes here Or this: echo '<form>Please enter other login id:<input type="text" name="login"></form>'; ^^^ ^^^ note single quotes here... ...and here Here's a great article that should clear all this up for you: http://www.zend.com/zend/tut/using-strings.php Cheers Jon

« previous php.general (#137881) next »