Jump to content

simple question


tomfmason

Recommended Posts

Ok here is another rather simple question. First I will explain what I am trying to do and then I will show what I have done so far.

I am creating a live support script. It works fine execpt that I manually have to refresh or make a new post to see any posts that are made by someone else.

So what I thought I would do is but in a meta refresh. I did this and it worked but when there are enough messages that you have to scroll down, it starts back at the top of the messages.

Then I tried this
[code]<meta http-equiv="refresh" content="2" url=http://www.mysite.com/chatbox.php#bottom">[/code]

and then at the bottom of the script I would but <a name="#bottom"> </a>

This works for the user end but not for the admin end. Since I need the chat_id to be able to connect with that particular person.

What I need to do on the admin section is pass the chat_id to the chat box. I can do this by admin/chatbox.php?chat_id=$chat_id but I also need to have the #bottom.

Any suggestions on how to do this or a better way to accomplish this would be great.
Link to comment
https://forums.phpfreaks.com/topic/15318-simple-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

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