php - How to call on next page through readmore link -


i'm using script in php. have added readmore option want user clicks on link open new page full article , gallery pictures. want open same window.

echo "<div id=message>"; $text = $row["message"];  <?php echo substr($text,0,500);?> <a href="#"?id=<?php echo $row['id']?> title="full story of <?php echo $row['title']?>">read more &raquo;</a> 

please try following:

echo "<div id=message>"; $text = $row["message"];  <?php echo substr($text,0,500);?> <a href="readmorepage.php?id=<?php echo $row['id']?>" title="full story of <?php echo $row['title']?>" target="_self">read more &raquo;</a> 

although _self default value of same need not write it.


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -