Gossamer Forum
Home : General : Perl Programming :

How can i use symbols???

Quote Reply
How can i use symbols???
Hi all,

Please, Help me...

When i tried to put a symbol like "&" give a error!?!?!?

the system doesn't accept?!?!

I want to put

Fun & Games

and i can't... what i have to do?!?!

I'm from brazil, and here we use "áóúíé and etc.." how to able the system accept it?!?!?!


Thanks




------------------
--

Rafael Faria
Flash World - Professional Resources
Quote Reply
Re: How can i use symbols??? In reply to
You can use the following:

Fun_and_Games

Then you can try this

$fieldname =~ s/and/&/g;
$fieldname =~ s/_/ /g;

What this does is that within the fieldname that you have entered Fun_and_Games, it will be read as:

Fun & Games

and = &
_ = space

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us

[This message has been edited by Eliot (edited July 08, 1999).]

[This message has been edited by Eliot (edited July 08, 1999).]
Quote Reply
Re: How can i use symbols??? In reply to
And in what file i have to put this code that you said?

$fieldname .... ??





------------------
--

Rafael Faria
Flash World - Professional Resources
Quote Reply
Re: How can i use symbols??? In reply to
The CGI file that you are running the form. Are you using LINKS???

If so, it may be wiser to post your question on the LINKS Modification Forum. Bobsie and others may be able to walk you through with modifying the various scripts.

Cheers,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us