Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Placing variable in FORM field

 [1/5] from: John:Harbaugh:capmetro at: 11-Jul-2003 9:21


I have the following variable defined and I would like to call it into the FORM field value sited: b1: cgi/title print [<input type="text" name="u_menu_title" size="20" value=b1>] Any help? John

 [2/5] from: g::santilli::tiscalinet::it at: 11-Jul-2003 16:53


Hi John, On Friday, July 11, 2003, 4:21:51 PM, you wrote: HJ> print [<input type="text" name="u_menu_title" size="20" value=b1>] print [{<input type="text" name="u_menu_title" size="20" value="} b1 {">}] Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r

 [3/5] from: andreas:bolka:gmx at: 11-Jul-2003 18:09


Friday, July 11, 2003, 4:53:01 PM, Gabriele wrote:
> Hi John, > On Friday, July 11, 2003, 4:21:51 PM, you wrote:
HJ>> print [<input type="text" name="u_menu_title" size="20" value=b1>]
> print [{<input type="text" name="u_menu_title" size="20" value="} b1 {">}]
print rejoin [ {<input type="text" name="u_menu_title" size="20" value="} b1 {">} ] might be even better, unless you prefer spaces surrounding your actual value.
>> foo: "bar"
== "bar"
>> print [ {value="} foo {"} ]
value=" bar "
>> print rejoin [ {value="} foo {"} ]
value="bar" -- Best regards, Andreas mailto:[andreas--bolka--gmx--net]

 [4/5] from: nitsch-lists:netcologne at: 11-Jul-2003 20:06


Am Freitag, 11. Juli 2003 16:21 schrieb Harbaugh, John:
> I have the following variable defined and I would like to call it into the > FORM field value sited: > > b1: cgi/title > > print [<input type="text" name="u_menu_title" size="20" value=b1>]
print replace <input type="text" name="u_menu_title" size="20" value=b1> "b1" b1 can be eventually more readable than breaking it in partial strings.
> Any help? > > John
-Volker

 [5/5] from: Al:Bri:xtra at: 12-Jul-2003 11:49


John wrote:
> I have the following variable defined and I would like to call it into the
FORM field value sited:
> b1: cgi/title > print [<input type="text" name="u_menu_title" size="20" value=b1>]
Have you considered using RSP? It's available from: http://www.shlik.org/rsp/ RSP allows one to insert some dynamic content into statically generated pages designed in a web page design program. Some people find this easier to understand. Have you considered using my ML dialect which is expressely for creating HTML pages? It's available from my site or directly from me. In ML, your example would translate to: b1: cgi/title ML compose/deep [ input/type/name/size/value "text" 'u_menu_title 20 (b1) ] ML is designed for HTML, XHTML, XML, WML, XML-SS and so on. It's meant for extremely fluid sites, where every page is highly dynamic and styling is done through CSS. For example, 'Peers, shows peer CGI scripts: Peers: func [Folder [file!]] [ compose/deep [ div/class "Peers" [( map read Folder function [File [file!]] [Header] [ if all [ %.r = extension? File File != Rebol/script/header/File ] [ Header: first load/header Folder/:File Title: trim/lines any [Header/Purpose ""] compose/deep [ span/class "Peer" [ a/href/title (Folder/:File) (Title) (Header/Title) ] ] ] ] )] ] ] Otherwise, Gabriele's solution: print [ {<input type="text" name="u_menu_title" size="20" value="} b1 {">} ] or Andreas' solution: print rejoin [ {<input type="text" name="u_menu_title" size="20" value="} b1 {">} ] are OK. Andrew J Martin ICQ: 26227169 http://www.rebol.it/Valley/ http://Valley.150m.com/