XHTML fixes
[squirrelmail.git] / doc / compose.txt
CommitLineData
57ba5fa9 1Creating Links to compose.php easily
2====================================
3
4makeComposeLink() PHP function helps to create links to the compose page
5easily, taking into account the user's settings, "Compose in new window" and
6"Use javascript". Here's how to use it:
7
81) Build the last part of the URL as follows:
9 $comp_uri = 'src/compose.php?mailbox='.$mailboxbox.'&send_to='.urlencode($usermail);
10
112) The display part of the link can be anything you like (such the name of the user):
12 $disp = 'The user's name';
13
143) Print it:
15 echo makeComposeLink($comp_uri, $disp);
16
17makeComposeLink() has been available since Squirrelmail 1.4.2.
18
19
20
21Using the comp_in_new javascript function
22=========================================
f29c336c 23
24comp_in_new is the javascript function to popup a new compose window.
25
b899bb85 26the function needs one argument:
271) url with arguments to the compose window.
f29c336c 28
29example 1:
b899bb85 30<a href="javascript:void(0)" onclick="comp_in_new("")>
f29c336c 31
32example 2:
b899bb85 33<a href="javascript:void(0)" onclick="comp_in_new("../../src/compose.php?argument1=true&amp;argument2=test")>
f29c336c 34