How to scan the user-entered value ?
am 05.11.2007 10:34:44 von dgsHow to scan the user-entered value ?
like, we have "scanf()" in 'C'.......
How to scan the user-entered value ?
like, we have "scanf()" in 'C'.......
In our last episode, <1194255284.204523.27570@i38g2000prf.googlegroups.com>,
the lovely and talented dgs broadcast on comp.lang.php:
> How to scan the user-entered value ?
> like, we have "scanf()" in 'C'.......
You can fscanf(STDIN) or fgets(STDIN) in the CLI. See chapter 43 "Using PHP
from the Command Line" in the manual. There may be more stuff you can do
with the curses functions, but they are poorly (i.e. not at all) documented.
Of course you cannot detect browser events except via GET or POST (in one
form or another) --- which I mention just in case you have no idea what PHP
is or how HTTP works.
--
Lars Eighner
Countdown: 442 days to go.
What do you do when you're debranded?