Gossamer Forum
Home : Products : DBMan : Customization :

Using a "| in html.pl causes an error

Quote Reply
Using a "| in html.pl causes an error
Hi all,
I am getting an error when using the following code in html.pl (record display):
<INPUT TYPE=HIDDEN NAME="orderproducts" VALUE="|$rec{'DefaultEmail'},$rec{'DefaultQuantity'},$rec{'Price'},$rec{'ProductName'},$rec{'StyleNumber'}|">

Leaving out the pipes at the start and the end of the script works fine - I need to have these pipes and punctuation marks in here - any ideas on how I can get the script to ignore the pipes,maybe?
Cheers,
Shaun
Quote Reply
Re: Using a "| in html.pl causes an error In reply to
Don't know what exactly you are doing...

But try using the escape character before the |, like the following:

Code:
\|

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------








Quote Reply
Re: Using a "| in html.pl causes an error In reply to
Uh, are you using them between a print qq&#0124; &#0124;; statement? If so, change you print statment delimeters to something else...

------------------
The Immuatable Order of Modding
-=-=-=-=-=-=-=-
1. Read the FAQ, 2. Search the board, 2a. Search the board again, 3. ask the question, 4. back-up, 5. experiment, 6. rephrase question (or better yet, post solution to original question)
Quote Reply
Re: Using a "| in html.pl causes an error In reply to
Thanks, guys, it was 4am in New Zealand when I posted that request for info - all fixed now :-)
Quote Reply
Re: Using a "| in html.pl causes an error In reply to
Good.

Suggestion: DO NOT hack codes after midnight...scary things can happen.

Wink

Get some sleep!

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------