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
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!