Document Title in E-Mail

345d54 17 Jul, 2007
I want to use the mambot to display my form on different pages. Now I was wondering if it is possible to get information on which page the user has used the form?

how can I insert something like
document.write(document.title);
so that it will be shown in the email?

thanx in advance
GreyHead 17 Jul, 2007
Hi 345d45,

Joomla has a function to give you the page title from the headers. Try:
<?php
global $mainframe; 
?>
<input type='hidden' name='title' 
  value='<?php echo $mainframe->_head['title']; ?> />
Bob<br><br>Post edited by: GreyHead, at: 2007/07/17 11:22
345d54 17 Jul, 2007
Wow that was quick - and it works perfect. Thanksalot!
345d54 17 Jul, 2007
Wow that was quick - and it works perfect. Thanksalot!
This topic is locked and no more replies can be posted.