Mailing List Archive

problems with selected and simple form
RH Linux 6.0ish, IC 4.6.0, MySQL 3.23.27, barry template

I have a very small form with one select box. The idea is to give the
user an option to set a scratch variable from one of two choices.
Here's the code:

<form action="[area pictures]" method="post">
<select name="browse_date" >
<option value="date" [selected browse_date date]>taken</option>
<option value="entered_date" [selected browse_date entered_date]>entered</option></select>
<input type="submit" value="Go">
</form>
[seti new_date_field][value-extended browse_date][/seti]
<!-- new_date_field [scratch new_date_field] -->
[if ! scratch date_field][seti date_field][scratch new_date_field][/seti]
[elsif scratch new_date_field]
[seti date_field][scratch new_date_field][/seti][/elsif]
[/if]
[if ! scratch date_field][set date_field]date[/set][/if]
<!-- date_field [scratch date_field] -->

This code is in my leftside template area. What happends is basically
nothing. What comes out is:

<!-- new_date_field 'entered_date' -->
<!-- date_field 'entered_date' -->

However, the selection box still shows 'taken'. Does the action of
the form need to be something other than just another IC page?
--
(__) Doug Alcorn (mailto:doug@lathi.net http://www.lathi.net)
oo / PGP 02B3 1E26 BCF2 9AAF 93F1 61D7 450C B264 3E63 D543
|_/ If you're a capitalist and you have the best goods and they're
free, you don't have to proselytize, you just have to wait.
problems with selected and simple form [ In reply to ]
Doug Alcorn <doug@lathi.net> writes:

> RH Linux 6.0ish, IC 4.6.0, MySQL 3.23.27, barry template
>
> [if ! scratch date_field][set date_field]date[/set][/if]
> <!-- date_field '[scratch date_field]' -->
>

I don't think this line actually works. If I remove all the other
stuff and leave just this, I get:

<!-- date_field '' -->

Is the above code showing a fundamental lack of understanding IC? If
so, what am I missing?
--
(__) Doug Alcorn (mailto:doug@lathi.net http://www.lathi.net)
oo / PGP 02B3 1E26 BCF2 9AAF 93F1 61D7 450C B264 3E63 D543
|_/ If you're a capitalist and you have the best goods and they're
free, you don't have to proselytize, you just have to wait.
problems with selected and simple form [ In reply to ]
Try one of these:

1) [if !scratch date_field][set date_field]date[/set][/if]

2) [if scratch date_field][else][set date_field]date[/set][/else][/if]

Good luck,

Cameron

> -----Original Message-----
> From: interchange-users-admin@lists.akopia.com
> [mailto:interchange-users-admin@lists.akopia.com]On Behalf Of Doug
> Alcorn
> Sent: Monday, January 08, 2001 10:11 AM
> To: interchange-users@minivend.com
> Subject: Re: [ic] problems with selected and simple form
>
>
> Doug Alcorn <doug@lathi.net> writes:
>
> > RH Linux 6.0ish, IC 4.6.0, MySQL 3.23.27, barry template
> >
> > [if ! scratch date_field][set date_field]date[/set][/if]
> > <!-- date_field '[scratch date_field]' -->
> >
>
> I don't think this line actually works. If I remove all the other
> stuff and leave just this, I get:
>
> <!-- date_field '' -->
>
> Is the above code showing a fundamental lack of understanding IC? If
> so, what am I missing?
> --
> (__) Doug Alcorn (mailto:doug@lathi.net http://www.lathi.net)
> oo / PGP 02B3 1E26 BCF2 9AAF 93F1 61D7 450C B264 3E63 D543
> |_/ If you're a capitalist and you have the best goods and they're
> free, you don't have to proselytize, you just have to wait.
>
>
>
> _______________________________________________
> Interchange-users mailing list
> Interchange-users@lists.akopia.com
> http://lists.akopia.com/mailman/listinfo/interchange-users
problems with selected and simple form [ In reply to ]
Quoting Doug Alcorn (doug@lathi.net):
> Doug Alcorn <doug@lathi.net> writes:
>
> > RH Linux 6.0ish, IC 4.6.0, MySQL 3.23.27, barry template
> >
> > [if ! scratch date_field][set date_field]date[/set][/if]
> > <!-- date_field '[scratch date_field]' -->
> >
>
> I don't think this line actually works. If I remove all the other
> stuff and leave just this, I get:
>
> <!-- date_field '' -->
>
> Is the above code showing a fundamental lack of understanding IC? If
> so, what am I missing?

I think it needs to be [if !scratch date_field].

--
Akopia, Inc., 131 Willow Lane, Floor 2, Oxford, OH 45056
phone +1.513.523.7621 fax 7501 <heins@akopia.com>

Friends don't let friends use Outlook. -- Bob Blaylock
problems with selected and simple form [ In reply to ]
Mike Heins <mikeh@minivend.com> writes:

> Quoting Doug Alcorn (doug@lathi.net):
> > Doug Alcorn <doug@lathi.net> writes:
> >
> > > RH Linux 6.0ish, IC 4.6.0, MySQL 3.23.27, barry template
> > >
> > > [if ! scratch date_field][set date_field]date[/set][/if]
> > > <!-- date_field '[scratch date_field]' -->
> > >
>
> I think it needs to be [if !scratch date_field].
>

Thanks, that works.
--
(__) Doug Alcorn (mailto:doug@lathi.net http://www.lathi.net)
oo / PGP 02B3 1E26 BCF2 9AAF 93F1 61D7 450C B264 3E63 D543
|_/ If you're a capitalist and you have the best goods and they're
free, you don't have to proselytize, you just have to wait.