http://qs321.pair.com?node_id=76250


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/