phpBB

Development Wiki

Difference between revisions of "Function.append sid"

From phpBB Development Wiki

(Created page with 'append_sid -- Prepare a URL before sending it to the template ==Description== #<pre>stringrequest_var ( $url [, $get_params])</pre> Append sid is used whenever you send a link …')
 
(See Also)
Line 28: Line 28:
 
==See Also==
 
==See Also==
 
[[reapply_sid]]
 
[[reapply_sid]]
 +
 
[[Template_Syntax]]
 
[[Template_Syntax]]
  

Revision as of 20:26, 21 November 2009

append_sid -- Prepare a URL before sending it to the template

Description

  1. stringrequest_var ( $url [, $get_params])

Append sid is used whenever you send a link to a template, including the action attribute value of html forms. This function will activlty determine whether a Session ID needs to be appended to the URL in order to preserve the current session.

Parameters

Parameter Usage
url (string) The physical page being linked to.
get_params (string) All the parameters added to send variables via the GET method.

Return Values

Returns the URL string with the Session ID if needed.

Examples

$template->assign_vars(array(
    
'U_ACTION'    => append_sid($phpbb_root_path.'viewtopic.'.$phpEx'f=69&t=1756785'),
));

The above creates the new template var 'U_ACTION'.

See Also

reapply_sid

Template_Syntax