Re: Re: RE: [PHP] Variable Problem

From: Date: Wed, 05 Feb 2003 23:48:15 +0000
Subject: Re: Re: RE: [PHP] Variable Problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-134512@lists.php.net to get a copy of this message
on any server i ever dealt with if i put: <input type="sent" value=<?php\"$sent\"?>> in the edit box for the value i always always end up with <?php instead of what $sent stands for..the only way i found it to work is with echo <<< but maybe im missing something ----- Original Message ----- From: "Chris Shiflett" <shiflett@php.net> To: "Sunfire" <rusty_81@msn.com>; <php-general@lists.php.net> Sent: Wednesday, February 05, 2003 5:44 PM Subject: Spam: Re: RE: [PHP] Variable Problem > --- Sunfire <rusty_81@msn.com> wrote: > > you can do: > > echo <<<BLOCK > > //any valid html code here > > <input type="sent" value=\"sent\"> > > BLOCK; > > No, he needed to output $sent, which is dynamic. > > Also, it is a lot cleaner (and likely faster) just to use > <? (or <?php) and ?> to switch in/out of PHP as needed. If > you're writing a bunch of static HTML, there's no reason to > be using PHP to do it. > > Chris > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003

« previous php.general (#134512) next »