Sorry that's RC$nbr not just nbr
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Matt Skeoch Sent: October 17, 2001 11:52 AM To: [EMAIL PROTECTED] Subject: RE: [sambar] script What I do to get this to work is setup a page that gathers all the information and requests then moves it onto the "action" page with a forward meta tag... here's an example of an addition to a database (a little advanced for what you would use it for but the same principle) <META HTTP-EQUIV="Refresh" Content="0; URL=add2.stm?sql=INSERT INTO Cable (Type,Brand,Description,Price,QTY,Pic,Supplier,Dte,Display) VALUES ('<RCif RC$typex=x><RC$type><RCelse><RC$typex><RCendif>','<RCif RC$brandx=x><RC$brand><RCelse><RC$brandx><RCendif>','<RC$description>','<RC$ price>',<RC$qty>,'<RC$picurl>','<RCif RC$supplierx=x><RC$supplier><RCelse><RCsupplierx><RCendif>','<RCEday>/<RCEmo nth>/<RCEyear>',<RC$vis>)&table2=<RC$table>"> (that above is the gather script) so you would pass: Page1: <META HTTP-EQUIV="Refresh" Content="0; URL=page2.stm?nbr=<Rcinclude/folder/chaine.txt>"> Page2 <RCif nbr = 0> No message <RCelse> Whatever you want here <RCendif> u can use Java and do this on one page but I like to stay clear of that when it gets this complicated. - hope this helps. Matt Skeoch -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Melvyn Sopacua Sent: October 16, 2001 5:16 PM To: [EMAIL PROTECTED] Subject: Re: [sambar] script The answer is simple: You cannot put RCinclude data into a variable. RCinclude however is interpreted, so - why not make a little change to the routine that writes the file, like this: file: /bla/messages.txt <RC$nbr = 0> Now if the file reads that, instead of just the 0, you have the variable RC$nbr available anywhere below that line. If you cannot change the app that writes the file, you can either use a cgi call to read it or use ASP Script. Sambar Script is not designed to give access to the file system, since it one of it's primary uses, is the administration interface. It's a design descision. At 19:17 16-10-01, you wrote: >i explain what i want to do: > >RC$nbr is equal at RC$chaine.txt (a file who contain a number) > >if RC$nbr is equal at zero, then i display "no message" >if RC$nbr is not equal at zero, then i not display "no message" but i >continu the reste of the page > >Mika. > >----- Original Message ----- >From: "Peter" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Tuesday, October 16, 2001 12:59 PM >Subject: Re: [sambar] script > > > > <RCif RC$nbr = 0> > > <RC$nbr ! 0> > > <RCinclude/folder/chaine.txt> > > <RCelse> > > No message > > <RCendif> > > > > ----- Original Message ----- > > From: "Mika" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Tuesday, October 16, 2001 12:52 PM > > Subject: Re: [sambar] script > > > > > > > zero > > > > > > but the problem is to run <RCinclude....> in a <RC$foo = value>. > > > i don't find a solution to do that... > > > > > > Mika. > > > > > > ----- Original Message ----- > > > From: "Peter" <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Sent: Tuesday, October 16, 2001 12:36 PM > > > Subject: Re: [sambar] script > > > > > > > > > > O or NULL? > > > > ----- Original Message ----- > > > > From: "Mika" <[EMAIL PROTECTED]> > > > > To: <[EMAIL PROTECTED]> > > > > Sent: Tuesday, October 16, 2001 12:33 PM > > > > Subject: Re: [sambar] script > > > > > > > > > > > > > i want to display "No message" when the file.txt is equal at 0 > > > > > > > > > > > > > > > Mika > > > > > > > > > > ----- Original Message ----- > > > > > From: "Bastiaan" <[EMAIL PROTECTED]> > > > > > To: <[EMAIL PROTECTED]> > > > > > Sent: Tuesday, October 16, 2001 12:17 PM > > > > > Subject: Re: [sambar] script > > > > > > > > > > > > > > > > Hi Mika, > > > > > > > > > > > > Is this what your looking for? > > > > > > > > > > > > <RC$nbr = <RCinclude /folder/RC$chaine.txt>> > > > > > > <RCif RC$nbr = NULL> > > > > > > No message > > > > > > <RCendif> > > > > > > > > > > > > greetings, > > > > > > Bastiaan > > > > > > > > > > > > > > > > > > Mika wrote: > > > > > > > > > > > > > Hi all. > > > > > > > > > > > > > > I have little problem. I would like to do something like that : > > > > > > > > > > > > > > <RC$nbr = <RCinclude /folder/RC$chaine.txt>> > > > > > > > <RCif RC$nbr = 0> > > > > > > > No message > > > > > > > <RCendif> > > > > > > > > > > > > > > but this don't run. Someone know the solution of this problem? > > > > > > > > > > > > > > Mika. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -------------------------------------------------------------------------- > > > > > ------ > > > > > > > For unsubscription of this list send an email to > > [EMAIL PROTECTED] > > > > > with email > > > > > > > data containing unsubscribe emailadd sambar > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -------------------------------------------------------------------------- > > > > > ------ > > > > > > For unsubscription of this list send an email to >[EMAIL PROTECTED] > > > > with > > > > > email > > > > > > data containing unsubscribe emailadd sambar > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -------------------------------------------------------------------------- > > > > ------ > > > > > For unsubscription of this list send an email to [EMAIL PROTECTED] > > > with > > > > email > > > > > data containing unsubscribe emailadd sambar > > > > > > > > > > > > > > > > > > > > -------------------------------------------------------------------------- > > > ------ > > > > For unsubscription of this list send an email to [EMAIL PROTECTED] > > with > > > email > > > > data containing unsubscribe emailadd sambar > > > > > > > > > > > > > > > > > > > > > -------------------------------------------------------------------------- > > ------ > > > For unsubscription of this list send an email to [EMAIL PROTECTED] >with > > email > > > data containing unsubscribe emailadd sambar > > > > > > > > > -------------------------------------------------------------------------- >------ > > For unsubscription of this list send an email to [EMAIL PROTECTED] with >email > > data containing unsubscribe emailadd sambar > > > > > > > >--------------------------------------------------------------------------- ----- >For unsubscription of this list send an email to [EMAIL PROTECTED] with >email >data containing unsubscribe emailadd sambar ____________________________________________________ </MELVYN> void wakeup() { for(long int cuppajava;drink();cuppajava++); } ---------------------------------------------------------------------------- ---- For unsubscription of this list send an email to [EMAIL PROTECTED] with email data containing unsubscribe emailadd sambar ---------------------------------------------------------------------------- ---- For unsubscription of this list send an email to [EMAIL PROTECTED] with email data containing unsubscribe emailadd sambar -------------------------------------------------------------------------------- For unsubscription of this list send an email to [EMAIL PROTECTED] with email data containing unsubscribe emailadd sambar
