Gossamer Forum
Home : General : Perl Programming :

A little Help

Quote Reply
A little Help
Hi,

I am writing a script and need to do some data validation. For example I am asking the user to enter their name in a text - box; I would like to advance back to that specific text - box if the user entered nothing.

I've paced the environment tables in a form

if( $FORM{ 'name' } eq "" )

{

Advance back to the text box here.

}



or

if( ! defined $FORM{'name'} )

{

Advance back to the text box here



}



Thanks,

Dave
Quote Reply
Re: [akastarlight] A little Help In reply to
Are you trying to run this from SSH, or a browser? If using SSH, you could probably use STDIN or something.

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates