Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: Pattern Match and Replace Problem

by Chady (Priest)
on Apr 27, 2001 at 23:56 UTC ( #76250=note: print w/replies, xml ) Need Help??


in reply to Re: Pattern Match and Replace Problem
in thread Pattern Match and Replace Problem

How are you recieving your form data?? I assume with CGI.pm ??

If that's the case... try this when you read the data:

use CGI; $q = new CGI; $Field1 = $q->param('Field1) ? $q->param('Field1') : ' '; $Field2 = $q->param('Field2) ? $q->param('Field2') : ' '; # and so on...

This way, if someone didn't fill in the "Field1" it will be replaced by a space character... or whatever you specify.


He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.

Chady | http://chady.net/

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://76250]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2021-12-02 07:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (17 votes). Check out past polls.

    Notices?