Welcome to Geeklog, Anonymous Friday, December 27 2024 @ 04:04 pm EST

Geeklog Forums

HTML & PHP in staticpages


Bill

Anonymous
Hello,

I am going nuts trying to get php to execute within the html area of my staticpages.

What i want to do is carry a variable across pages to various areas of the static page.

Here is what i have
Text Formatted Code

<?php
$xyzcode = $_GET['abc'];
$source = mnt;
?>
<html code goes here>
 


The code does not execute...i have tried it with closing php tags in the very beginning but no luck.

Any suggestions would be greatly appreciated.

Tks
bill
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
There's an example in the documentation ...

bye, Dirk
 Quote

All times are EST. The time is now 04:04 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content