1. Euphoria CGI forms

When using euphoria for cgi, is it not possible to pass a hidden value, from
a variable...like this..

integer theval
theval=8

<insert all the other form code that goes before this>
puts(1,"<input type\"hidden\" name=\"hiddenvariable\" value=theval>")


Anytime I've tried to do that, the variable is always blank when I retrieve
it from the next page.  On the other hand,
puts(1,"<input type\"hidden\" name=\"hiddenvariable\" value=\"theval\">")
works fine, except of course, that's not what I want.  But, what I mean
is...if I type out an exact value, it works.  But, if I try to use a
variable value, it doesn't work.  Is this a limit of euphoria and cgi?  Or,
am I doing/not doing something wrong?  I've also tried doing
puts(1,"<inpute type\"hidden\" name=\"hiddenvariable\"
value=sprint(thevalue)>")
in case it needed a sequence, not an integer.  But, that doesn't work
either.

Any ideas? suggestions?

Michelle Rogers

new topic     » topic index » view message » categorize

2. Re: Euphoria CGI forms

On Mon, 5 Jul 2004 06:30:14 -0400, Michelle Rogers
<michellerogers at bellsouth.net> wrote:

>I've also tried doing
>puts(1,"<inpute type\"hidden\" name=\"hiddenvariable\"
>value=sprint(thevalue)>")
Try .....value="&sprint(thevalue)&">"

Regards
Pete

new topic     » goto parent     » topic index » view message » categorize

3. Re: Euphoria CGI forms

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?
Michelle Rogers
----- Original Message ----- 
From: "Pete Lomax" <petelomax at blueyonder.co.uk>
To: <EUforum at topica.com>
Sent: Monday, July 05, 2004 7:17 AM
Subject: Re: Euphoria CGI forms


>
>
> On Mon, 5 Jul 2004 06:30:14 -0400, Michelle Rogers
> <michellerogers at bellsouth.net> wrote:
>
> >I've also tried doing
> >puts(1,"<inpute type\"hidden\" name=\"hiddenvariable\"
> >value=sprint(thevalue)>")
> Try .....value="&sprint(thevalue)&">"
>
> Regards
> Pete
>
>
>
>

new topic     » goto parent     » topic index » view message » categorize

4. Re: Euphoria CGI forms

On Mon, 05 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?
> Michelle Rogers
> ----- Original Message ----- 
> From: "Pete Lomax" <petelomax at blueyonder.co.uk>
> To: <EUforum at topica.com>
> Sent: Monday, July 05, 2004 7:17 AM
> Subject: Re: Euphoria CGI forms
> 
> 
> > On Mon, 5 Jul 2004 06:30:14 -0400, Michelle Rogers
> > <michellerogers at bellsouth.net> wrote:
> >
> > >I've also tried doing
> > >puts(1,"<inpute type\"hidden\" name=\"hiddenvariable\"
> > >value=sprint(thevalue)>")
> > Try .....value="&sprint(thevalue)&">"
> >
> > Regards
> > Pete

Well, if the value filed contains caracters that can be taken as enders then
they'll be cutted, that's why when using spaces or non-letters/numbers on the
fields it's recommended to put "" between them.

new topic     » goto parent     » topic index » view message » categorize

5. Re: Euphoria CGI forms

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 message » categorize

6. Re: Euphoria CGI forms

oh wait!  *slaps her forehead*  I know the problem...I'm only thinking of
html...that's the problem....but it needs to be outside of quotes in
EUPHORIA....not html!!!  And now, I also understand exactly what you're
saying!
duh!

heh
Michelle Rogers
----- Original Message ----- 
From: "Guillermo Bonvehi" <knixeur at speedy.com.ar>
To: <EUforum at topica.com>
Sent: Monday, July 05, 2004 8:09 AM
Subject: Re: Euphoria CGI forms


>
>
> On Mon, 05 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?
> > Michelle Rogers
> > ----- Original Message ----- 
> > From: "Pete Lomax" <petelomax at blueyonder.co.uk>
> > To: <EUforum at topica.com>
> > Sent: Monday, July 05, 2004 7:17 AM
> > Subject: Re: Euphoria CGI forms
> >
> >
> > > On Mon, 5 Jul 2004 06:30:14 -0400, Michelle Rogers
> > > <michellerogers at bellsouth.net> wrote:
> > >
> > > >I've also tried doing
> > > >puts(1,"<inpute type\"hidden\" name=\"hiddenvariable\"
> > > >value=sprint(thevalue)>")
> > > Try .....value="&sprint(thevalue)&">"
> > >
> > > Regards
> > > Pete
>
> Well, if the value filed contains caracters that can be taken as enders
then they'll be cutted, that's why when using spaces or non-letters/numbers
on the fields it's recommended to put "" between them.
>
>
>
>

new topic     » goto parent     » topic index » view message » categorize

7. Re: Euphoria CGI forms

----- Original Message -----
From: "Michelle Rogers"
Sent: Monday, July 05, 2004 6:30 AM
Subject: Euphoria CGI forms


> When using euphoria for cgi, is it not possible to pass a hidden value,
from
> a variable...like this..
>
> integer theval
> theval=8
>
> <insert all the other form code that goes before this>
> puts(1,"<input type\"hidden\" name=\"hiddenvariable\" value=theval>")
>
>
> Anytime I've tried to do that, the variable is always blank when I
retrieve
> it from the next page.  On the other hand,
> puts(1,"<input type\"hidden\" name=\"hiddenvariable\" value=\"theval\">")
> works fine, except of course, that's not what I want.  But, what I mean
> is...if I type out an exact value, it works.  But, if I try to use a
> variable value, it doesn't work.  Is this a limit of euphoria and cgi?
Or,
> am I doing/not doing something wrong?  I've also tried doing
> puts(1,"<inpute type\"hidden\" name=\"hiddenvariable\"
> value=sprint(thevalue)>")
> in case it needed a sequence, not an integer.  But, that doesn't work
> either.
>
> Any ideas? suggestions?
>
> Michelle Rogers

type="hidden"
NOT
type"hidden"

puts(1,"<input type\"hidden\" name=\"hiddenvariable\"
puts(1,"<input type=\"hidden\" name=\"hiddenvariable\"

    unkmar

new topic     » goto parent     » topic index » view message » categorize

8. Re: Euphoria CGI forms

ahh..thanks..but that was only a typo here..not how it is in the program
Michelle Rogers
----- Original Message ----- 
From: "Lucius Hilley" <l3euphoria at bellsouth.net>
To: <EUforum at topica.com>
Sent: Monday, July 05, 2004 10:22 AM
Subject: Re: Euphoria CGI forms


>
>
> ----- Original Message -----
> From: "Michelle Rogers"
> Sent: Monday, July 05, 2004 6:30 AM
> Subject: Euphoria CGI forms
>
>
> > When using euphoria for cgi, is it not possible to pass a hidden value,
> from
> > a variable...like this..
> >
> > integer theval
> > theval=8
> >
> > <insert all the other form code that goes before this>
> > puts(1,"<input type\"hidden\" name=\"hiddenvariable\" value=theval>")
> >
> >
> > Anytime I've tried to do that, the variable is always blank when I
> retrieve
> > it from the next page.  On the other hand,
> > puts(1,"<input type\"hidden\" name=\"hiddenvariable\"
value=\"theval\">")
> > works fine, except of course, that's not what I want.  But, what I mean
> > is...if I type out an exact value, it works.  But, if I try to use a
> > variable value, it doesn't work.  Is this a limit of euphoria and cgi?
> Or,
> > am I doing/not doing something wrong?  I've also tried doing
> > puts(1,"<inpute type\"hidden\" name=\"hiddenvariable\"
> > value=sprint(thevalue)>")
> > in case it needed a sequence, not an integer.  But, that doesn't work
> > either.
> >
> > Any ideas? suggestions?
> >
> > Michelle Rogers
>
> type="hidden"
> NOT
> type"hidden"
>
> puts(1,"<input type\"hidden\" name=\"hiddenvariable\"
> puts(1,"<input type=\"hidden\" name=\"hiddenvariable\"
>
>     unkmar
>
>
>
>

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu