I have a script, that reads the value of "email" parsed to the script, like this:
my $query = new CGI;
my $email = $query->param('email');
And i put the value of email in a hidden form field like this:
<input type="hidden" name="email" value="$email">
However, i want $email to be the value of this hidden field only, if the email address ends with @yahoo.com otherwise i want it to print my email address as the value of that hidden field
Im assuming this can be done using If and Else statements but i dont know how. Can anyone tell me how this can be done?
Any help would be appreciated.
Cheers
Linda
Depending on which programming language it is that someone wants to use and learn, the best thing is to look online for the official documentation for the syntax and usage conventions and read through to learn it from the ground up.
afaik, it doesn't get more 'official' for perl than that one. Great reference for all the if () elsif () etc. syntax. ;)