Jump to content

ajax in header?


herghost

Recommended Posts

Hi all,

 

Sorry couldn't decide if this was ajax or php...

 

Basically I have an ajax function that opens a page in the <main> div tags set in my css. The look like this:

 

<a href="javascript:ajaxpage('about.php', 'main');">About</a>

 

How would I go about formating this to work in an php header tag?

 

<?php
header ("Location:??????????");
?>

 

Many Thanks

Link to comment
https://forums.phpfreaks.com/topic/175342-ajax-in-header/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.