Jump to content

Recommended Posts

Hello ,

 I have a problem , I want to wirte HTML code that only refreshes the <div> test , so just the code between de <div>...</div>

I was thinking to use some Javascript but I'm not sure this works in PHP , because my in HTML div there's PHP code.

My HTML code:


    <div id = "other div">
  	<div id="test">
     	<?php refresh this code ?>


Link to post
Share on other sites

If you want to just refresh that specific div content without refreshing/reloading the whole page, you then need to look into AJAX which will use both, JavaScript to set a time to refresh the content by going to a php page and retrieving the content produced by that page to insert into that specific div.

  • Thanks 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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