Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: mold and string concatenation
Pages: [1] Print
Author Topic: mold and string concatenation  (Read 298 times)
rebolnotes
Newbie
*
Offline Offline

Posts: 23


View Profile
mold and string concatenation
« on: June 20, 2007, 12:19:15 AM »

I slightly modified the script found here:
http://www.rebol.com/docs/cgi2.html


foreach [var value] decode-cgi system/options/cgi/query-string [
    emit [<TR><TD> mold var </TD>
    <TD> <a href="http://www." mold value ".com"> mold value </a></TD></TR>]
]

--->
It doesn't want to concatenate "http://www." mold value ".com (the url stays http://www.)

why ?

Also if I want to filter on field and I use
if mold var = "Field"

It doesn't seem to work either as submit value is not excluded.





« Last Edit: June 20, 2007, 12:49:58 AM by rebolnotes » Logged
Gabriele
Full Member
***
Offline Offline

Posts: 182


View Profile WWW
Re: mold and string concatenation
« Reply #1 on: June 20, 2007, 03:25:25 AM »

First, you don't need MOLD there.

Second, you'll need to use JOIN or REJOIN or use a string instead of a tag, eg:

  {<a href="http://www.} value {.com">} value </a>
Logged
Pages: [1] Print 
Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: mold and string concatenation
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 07, 2008, 11:17:56 AM
Username: Password: Session Length:
  

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2241 Posts in 585 Topics by 2232 Members
Latest Member: ThortHoTeMorY

  Rebol Talk Forum | Powered by SMF 1.0.9.
© 2001-2005, Lewis Media. All Rights Reserved.

RT design by Defiant Pc