On 2 Aug 2000, at 20:33, Shawn wrote:

> Here are the comments you mentioned.
> 
> "
> /*
>  ** Function: ScreenURL
>  ** Input: $screen, [$secure], [$extra]
>  ** Output: Function that adds session id and screen to URL.  If $secure is
>  **   TRUE, then the URL returned will force SSL mode. Returns something
>  **   like:
>  **   "http://jjinux/practice/index.php3?sid=kajsdfsdflokjsf&SCREEN=Home"
>  **
>  ** The extra argument should be an associative array of form variables.
>  */
> "
> 
> So I will assume that the correct syntax is:
> Secure   =  print("<A HREF=\"" . $screen, [SecureURL("order_info")] .
> "\">");
> 
> Shawn
> 

I don't have a SecureURL in my code, so I think what you mean is:
Secure = print("<A HREF=\"". ScreenURL("order_info", TRUE) . 
"\">");

(and anything for  $extra if you need it)

I don't think any changes need to be made to ScreenURL because 
it has:
  if(USE_SSL AND $secure)
                {
                        $URL = "https://";
                }
                else
                {
                        $URL = "http://";
                }              

unless your secure server is set up differently.

Also make sure USE_SSL is set properly.

Also I have not activated SSL yet, so I have not tested this yet, all I 
did was follow the comments and the code, the comments for the 
function are pretty clear on what the arguments do.  Best way to 
learn is to look at the code: look how ScreenURL is called the the 
thousands of other places it is called.  THe only difference is you 
are setting the $secure argument to true!


------------------------------------------------------------
To subscribe:    [EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Site:            http://www.working-dogs.com/freetrade/
Problems?:       [EMAIL PROTECTED]

Reply via email to