Hmm, interesting.
If I use the code that follows.
$SCREEN = "order_info";
$ACTION="CREATE_INVOICE";
I get logged in and get shown the privacy statement but nothing else. Very
wierd.
Shawn
----- Original Message -----
From: "Christie Walker" <[EMAIL PROTECTED]>
To: "FreeTrade" <[EMAIL PROTECTED]>
Sent: Friday, November 03, 2000 6:43 PM
Subject: Re: [FreeTrade] Need help with $Screen command
> No whenever the screen var is passed with a value that doesn't
> match any of the files it defaults to welcome. Check the code in
> index.php.
>
> I think I just realized what you are trying to do and I think what you
> really want is
>
> $SCREEN = "order_info"
> $ACTION="CREATE_INVOICE";
>
> Look through index.php line by line and make sure you understand
> it all, because index.php is really the starting point of the entire FT
> application. It's really important to understand how the other
> pieces are called from index.php
>
>
>
>
>
> On 3 Nov 2000, at 18:29, Shawn Honeychurch wrote:
>
> > I removed the extra ; but it makes no difference, i get logged in but
dumped
> > into the welcome screen. I don't understand how this can be since I am
not
> > calling the welcome screen at all. Shouldn't I get an error message?
> >
> > $SCREEN = "" . ScreenURL("order_info") . "&ACTION=CREATE_INVOICE";
> >
> > Shawn
> >
> >
> > ----- Original Message -----
> > From: "Christie Walker" <[EMAIL PROTECTED]>
> > To: "FreeTrade" <[EMAIL PROTECTED]>
> > Sent: Friday, November 03, 2000 6:19 PM
> > Subject: Re: [FreeTrade] Need help with $Screen command
> >
> >
> > > Compare the two pieces of code in your message again. They are
> > > not identical. (you have an extra ; )
> > >
> > > On 4 Nov 2000, at 5:55, Shawn Honeychurch wrote:
> > >
> > > > OK;
> > > >
> > > > When I make the changes you mention I do succeed in logining in, but
I
> > just
> > > > get dumped into the welcome screen. This is the modified code.
> > > >
> > > > $SCREEN = "" . ScreenURL("order_info") . "&;ACTION=CREATE_INVOICE";
> > > >
> > > > I also tried modifying the code from the UPDATE_ITEM action, as
below.
> > > >
> > > > $ActionResults[] = "<A HREF=\"" . ScreenURL("order_info") .
> > > > "&ACTION=CREATE_INVOICE\"></A>";
> > > >
> > > > This logs me in but dumps me in the contents screen.
> > > >
> > > > Any other thoughts?
> > > >
> > > > Shawn
> > > >
> > > >
> > > > ----- Original Message -----
> > > > From: "Christie Walker" <[EMAIL PROTECTED]>
> > > > To: "FreeTrade" <[EMAIL PROTECTED]>
> > > > Sent: Friday, November 03, 2000 5:13 PM
> > > > Subject: Re: [FreeTrade] Need help with $Screen command
> > > >
> > > >
> > > > > Change & to a real ampersand and get rid of the extra quote
> > > > > at the end. You probably don't need the beginning "". either but
it
> > > > > won't hurt anything. Just look at examples in the code, there are
> > > > > enough of them, such as this from UPDATE_ITEM, around line 93:
> > > > > $ActionResults[] = "The item name you are trying to use has " .
> > > > > "already been used: ".
> > > > > "<A HREF=\"" . ScreenURL("admin_item") .
> > > > > "&item=$id\">$inputName</A>.";
> > > > >
> > > > > And just to be sure we're talking about the same thing, "$Screen="
> > > > > isn't really a command, what you are doing is setting a variable
> > > > > called Screen equal to some value. It's not really going to *do*
> > > > > anything until you do something with that variable, like print it
out
> > > > > or navigate to that URL in this case. The only time you would use
> > > > > & for an ampersand is when you are doing HTML and you
> > > > > want to be sure an ampersand is displayed, and not used to print a
> > > > > special character. What you are doing in the code is setting a
> > > > > variable in PHP, and in this case you are setting up a URL to
either
> > > > > create a link or navigate to so using & just does not apply to
> > > > > this.
> > > > >
> > > > >
> > > > > On 4 Nov 2000, at 4:00, Shawn Honeychurch wrote:
> > > > >
> > > > > > Hi;
> > > > > >
> > > > > > I have been trying to get the $Screen= command to start the
login
> > > > process.
> > > > > > It is usually used like this
> > > > > > $SCREEN = "checkout_warning";
> > > > > >
> > > > > > How do I get it to work like this
> > > > > > $SCREEN = "" . ScreenURL("order_info") .
> > "&ACTION=CREATE_INVOICE"";
> > > > > >
> > > > > > Anu ideas?
> > > > > >
> > > > > > Shawn
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > ------------------------------------------------------------
> > > > > > To subscribe: [EMAIL PROTECTED]
> > > > > > To unsubscribe: [EMAIL PROTECTED]
> > > > > > Site: http://www.working-dogs.com/freetrade/
> > > > > > Problems?: [EMAIL PROTECTED]
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ------------------------------------------------------------
> > > > > To subscribe: [EMAIL PROTECTED]
> > > > > To unsubscribe: [EMAIL PROTECTED]
> > > > > Site: http://www.working-dogs.com/freetrade/
> > > > > Problems?: [EMAIL PROTECTED]
> > > > >
> > > >
> > > >
> > > >
> > > > ------------------------------------------------------------
> > > > To subscribe: [EMAIL PROTECTED]
> > > > To unsubscribe: [EMAIL PROTECTED]
> > > > Site: http://www.working-dogs.com/freetrade/
> > > > Problems?: [EMAIL PROTECTED]
> > >
> > >
> > >
> > >
> > > ------------------------------------------------------------
> > > To subscribe: [EMAIL PROTECTED]
> > > To unsubscribe: [EMAIL PROTECTED]
> > > Site: http://www.working-dogs.com/freetrade/
> > > Problems?: [EMAIL PROTECTED]
> > >
> >
> >
> >
> > ------------------------------------------------------------
> > To subscribe: [EMAIL PROTECTED]
> > To unsubscribe: [EMAIL PROTECTED]
> > Site: http://www.working-dogs.com/freetrade/
> > Problems?: [EMAIL PROTECTED]
>
>
>
>
> ------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Site: http://www.working-dogs.com/freetrade/
> Problems?: [EMAIL PROTECTED]
>
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Site: http://www.working-dogs.com/freetrade/
Problems?: [EMAIL PROTECTED]