pass string to html page - php include

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
leewad
Forum Commoner
Posts: 91
Joined: Tue May 11, 2004 8:32 am

pass string to html page - php include

Post by leewad »

Hi

I have lots of pages such as

sale-property-marbella.htm which has an php include thats pulls all the properties in such as marbella etc, its limited to 10 properties per page so has page numbers page2 - page3 - page4 - page5

I want the page numbers to pass through back to same page like sale-property-marbella.htm?page=2 where it will list page2 of properties, page3, page4 and so on

How can i pass the $page variable through the same htm page? if it was php then it wouldnt be a problem.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: pass string to html page - php include

Post by Celauran »

leewad wrote:if it was php then it wouldnt be a problem.
There's your answer.
leewad
Forum Commoner
Posts: 91
Joined: Tue May 11, 2004 8:32 am

Re: pass string to html page - php include

Post by leewad »

i have 100's of html pages in the site which are ranked good in google,

1, i dont what to change all the existing pages to PHP
2, i dont want to lose all the ranking pages due to them being renamed
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: pass string to html page - php include

Post by Celauran »

leewad wrote:i dont want to lose all the ranking pages due to them being renamed
Rewrites can take care of that. You can even tell Apache to treat .html files as though they were .php
Post Reply