Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: Argument values

by TheoPetersen (Priest)
on Jul 23, 2001 at 23:03 UTC ( #99126=note: print w/replies, xml ) Need Help??

in reply to Argument values

You don't give much to go on; what do you mean by "the value doesn't work"?

My first guess though would be that the problem is here in the main routine:

$user_name = em(param('name')); &file_creation($user_name);
file_creation then converts $user_name as so:
$user_name = substr($user_name, 1, 4);
The em function prints an <EM> tag, so $user_name ends up containing "EM>" plus the first character of the parameter value.

Replies are listed 'Best First'.
(ar0n) Re (2): Argument values
by ar0n (Priest) on Jul 23, 2001 at 23:14 UTC
    Not only that, but the variable in the expression directly above it is misspelled (note the lack of an underscore):
    ... if ( substr($username, 0, 1) eq "0" ) ...
    Please, use strict from now on!

    ar0n ]

      It's fixed guys, i wasnt sure what the em() was doing... thanks... sometimes you just dont see those little things that others see immediately and vice versa.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://99126]
[ambrus]: TCLion: it's to make people write non-short writeups in an external editor and save it to a local file. otherwise people will complain that they had a very insightful extended reply but their browser died just when they were almost ready posting it.
[ww]: ++ambrus "their browser died just when...."
[ambrus]: ww: or they accidentally closed the window, or something. the exact excuse doesn't matter.
[ambrus]: you hear that on web forums frequently.
LanX Fermat 's famous browser
[ww]: ambrus agree; got the t-shirt, et al

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (16)
As of 2017-03-23 18:16 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (292 votes). Check out past polls.