Jump to content
TNG Community

Email Questions


RWWells

Recommended Posts

I am trying to figure out how to pass a variable to the suggest.php and have that used as my subject.

I have changed the topmenu.php for template9 to look like this which I copied from the wiki.

<li>

<a href="<?php echo $cms['tngpath']; ?>suggest.php?page=$page\"><span class="l"></span><span class="t"><?php echo $text['contactus']; ?></span></a>

</li>

When I click on contact us from a page I get a subject $page. I was expecting it to be blank as I had not initialized $page.

Questions: Is this the proper code to pass the variable $page to suggest.php if not how should it be coded?

Where in the topmenu.php can I initialize the value $page in order for it to show up when the code is executed?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...