Re: Euphoria CGI forms

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Mon, 5 Jul 2004 07:28:50 -0400, Michelle Rogers
<michellerogers at bellsouth.net> wrote:

>I haven't tried that, yet, to see if it works.  But, just out of
>curiosity...can you tell me the 'why"..or the logic of doing that?

You are asking it to print literal text, not the result of an
expression. Try running this (as a standalone program):

include misc.e
integer theval
theval=8
puts(1,"<input type\"hidden\" name=\"hiddenvariable\"
value=theval>\n\n")
puts(1,"<input type\"hidden\" name=\"hiddenvariable\"
value=sprint(theval)>\n\n")
puts(1,"<input type\"hidden\" name=\"hiddenvariable\"
value="&sprint(theval)&">\n\n")
printf(1,"The value of %s is %d\n",{"1+1",1+1})

Regards,
Pete

PS Just to muddy the waters a bit, if "theval" was say a javascript or
somesuch variable, you _would_ output its alpha name from the Eu
program, but this is an Eu variable. That might be something you have
seen which threw you..

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu