Re: [PHP] How to echo the end marker '?'

2002-11-08 Thread Petre Agenbag
I'm just curious.
Why do you want to echo within an echo?
echo 'form action='.$PHP_SELF.'';
will do the trick won't it?
Unless I miss the point, I cannot see why you need to open new php tags
for this?




On Fri, 2002-11-08 at 14:25, Ernest E Vogelsinger wrote:
 At 12:15 08.11.2002, Philipp Bolliger spoke out and said:
 [snip]
 subject's allready my question ! I want to echo something like : form 
 action = \,?php echo $PHP_SELF ? \  so that the action becomes ? 
 echo $PHP_SELF ? !! But I can't figure out how to escape ? so that the 
   interpreter doesn't take it as the end of the script ! Any idea ?
 [snip] 
 
 Try 
 
 echo 'form action=', '', '?', 'php echo $PHP_SELF', '?', '', '';
 
 This should work (untested)
 
 
 -- 
O Ernest E. Vogelsinger 
(\) ICQ #13394035 
 ^ http://www.vogelsinger.at/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] How to echo the end marker '?'

2002-11-08 Thread @ Edwin
Hello,

"Petre Agenbag" [EMAIL PROTECTED] wrote:
 I'm just curious.

Me, too. :)

 Why do you want to echo within an echo?
 echo 'form action="'.$PHP_SELF.'"';
 will do the trick won't it?

True.

 Unless I miss the point, I cannot see why you need to open new php tags
 for this?

But, if there's a special reason...

  echo $PHP_SELF ? !! But I can't figure out how to escape ? so that
the
interpreter doesn't take it as the end of the script ! Any idea ?

Well, we can use lt; instead of  and gt; instead of  , etc...

- E

...[snip]...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] How to echo the end marker '?'

2002-11-08 Thread Philipp Bolliger
Hi everyone,

subject's allready my question ! I want to echo something like : form 
action = \,?php echo $PHP_SELF ? \  so that the action becomes ? 
echo $PHP_SELF ? !! But I can't figure out how to escape ? so that the 
 interpreter doesn't take it as the end of the script ! Any idea ?

cheers, phibo


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How to echo the end marker '?'

2002-11-08 Thread Ernest E Vogelsinger
At 12:15 08.11.2002, Philipp Bolliger spoke out and said:
[snip]
subject's allready my question ! I want to echo something like : form 
action = \,?php echo $PHP_SELF ? \  so that the action becomes ? 
echo $PHP_SELF ? !! But I can't figure out how to escape ? so that the 
  interpreter doesn't take it as the end of the script ! Any idea ?
[snip] 

Try 

echo 'form action=', '', '?', 'php echo $PHP_SELF', '?', '', '';

This should work (untested)


-- 
   O Ernest E. Vogelsinger 
   (\) ICQ #13394035 
^ http://www.vogelsinger.at/



RE: [PHP] How to echo the end marker '?'

2002-11-08 Thread John W. Holmes
 subject's allready my question ! I want to echo something like :
form
 action = \,?php echo $PHP_SELF ? \  so that the action becomes ?
 echo $PHP_SELF ? !! But I can't figure out how to escape ? so that
the
   interpreter doesn't take it as the end of the script ! Any idea ?

Maybe I don't understand... but,

echo form action=\? echo \$PHP_SELF ?\ ;

---John Holmes...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] How to echo the end marker '?'

2002-11-08 Thread Jason Young
If you're trying to get a LITERAL ? Use gt; for your  symbol so that 
you have

?gt;

I also noticed you didn't have a ? at the beginning of your string, so 
use lt;?  for that.

Does this help?

John W. Holmes wrote:

subject's allready my question ! I want to echo something like :


action = \,?php echo $PHP_SELF ? \  so that the action becomes 
echo $PHP_SELF ? !! But I can't figure out how to escape ? so that

the

  interpreter doesn't take it as the end of the script ! Any idea ?


Maybe I don't understand... but,

echo \ ;

---John Holmes...




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php