2010-04-13, 09:50 PM
Currently I am using:
[code]
redirect(get_thread_link($mybb->input['tid'], 0, "lastpost"), "Thanks for your submission. You will now be redirected back to the thread.");
[code]
But I would like the button to turn into a "Thanks for submitting!" instead of redirecting, but I can't find an alternative. I would also like it to update the value (value += 1) on the page without needing to refresh. I've seen people do this, too. Can anyone give me an idea?
[code]
redirect(get_thread_link($mybb->input['tid'], 0, "lastpost"), "Thanks for your submission. You will now be redirected back to the thread.");
[code]
But I would like the button to turn into a "Thanks for submitting!" instead of redirecting, but I can't find an alternative. I would also like it to update the value (value += 1) on the page without needing to refresh. I've seen people do this, too. Can anyone give me an idea?