Jump to content

PHP Include Complications


hotliquer

Recommended Posts

I need to know something But I am quite unsure of its name otherwise I would be able to find it with search.

 

I am trying to embed php code in a page or even using an iframe so when users click content inside of the include or iframe I want the clicked lick to reflect in the address bar. Then google links will actually link to my template page and not the script directory.

 

I currently have an iframe set up on this page

http://gtdb.org/?page_id=29

If you click the link under artist you can see it nearly works but does not pass the results to the search form. all other links are using standard links that work but dont reflect the address in the bar.

 

I have the same script set up as an include on this page but as you can see it wants to break out of the page.

I am using this include code

<?

$a = file_get_contents("http://www.gtdb.org/db/index.htm");

echo ($a);

?>

 

I have tried many wyas yo include but I think its something to do with the actual script thats making it jump out. Is there anything I can do?

 

Does this make sense?

 

Thanks

Ben

Link to comment
Share on other sites

This is the code that I am using in the artist link column

<TD class=borderbody vAlign=middle align=middle {$artist_style}><a href="http://onecuts.com/music/tunings_public/guitar_tunings_list.php?a=search&value=1&SearchOption=Contains&SearchField=&SearchFor={$artist_value}">{$artist_value}</a></TD>

 

I have also attached the main php file that is used.

 

 

 

I forgot to post the second link on my earlier post.

 

http://gtdb.org/?page_id=18

 

This is the page using php to try and include the file http://www.gtdb.org/db/index.htm

index simply calls up guitar_tunings_list.php which is in the same directory.

 

I have tried also including guitar_tunings_list.php but I cant seem to get it working.

 

 

 

Thanks

Ben

 

 

 

 

[attachment deleted by admin]

Link to comment
Share on other sites

Im sorry the code from my previous post was from the old site. I am working on both files and posted the wrong code

 

here is the proper code

<TD vAlign=middle align=left {$artist_style}><a href="http://www.gtdb.org/?page_id=29?guitar_tunings_list.php?a=search&value=1&SearchFor={$artist_value}&SearchOption=Contains&SearchField=" target="_top">{$artist_value}</a></TD>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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...

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.