Function.append sid

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

Description
Append sid is used whenever you send a link to a template, including the action attribute value of html forms. This function will actively determine whether a Session ID needs to be appended to the URL in order to preserve the current session.
 * 1) string append_sid( $url [, $params = false [, $is_amp = true [, $session_id = false]]])

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&amp;t=1756785'), )); The above creates the new template var 'U_ACTION'.

$template->assign_vars(array( 'U_ACTION'	=> append_sid($phpbb_root_path.'viewtopic.'.$phpEx, array('f' => 69, 't' => '1756785'), )); The above creates the new template var 'U_ACTION'.