简体   繁体   中英

How to display html output in the same page?

I'm writing an app to grab pictures from social networks. How can I add make sure that when the user clicks the links, the output (which consists of the grabbed pictures) is displayed in the same page?

I wrote separate php files for each of them, and they all go to separate pages. I want to put them on the same page. How can I run the php files in the same page?

<a href="#" class="show_hide" rel="#slidingDiv">View</a>
<br /> 
<div id="slidingDiv"> 
    <a href="/Gravatar/gravindex.php">Gravatar</a> 
</div>

That depeneds on the link not to php. if you use target="_self" it will be open in the same page

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM