Jump to content

Php refresh button for .js fallback

ideafarmer's Photo
Posted Dec 03 2010 11:20 AM
4337 Views

After a great deal of googling and forum searches, I am finding conflicting information on how best to implement a form button that issues a page refresh from php. I have an array of images I want to be able to click through if javascript isn't enabled and I can get everything to work but the php fallback of these buttons. I've tried header calls and meta, but neither seems to respond. Any help would be much appreciated!

Tags:
1 Subscribe


1 Reply

0
  DarkFlib's Photo
Posted Jan 24 2011 05:13 PM

If you just want the same page to reload, why not just submit to the page you are on?

ie. <form method="post" action=""><input type="submit" name="refresh" value="refresh" /></form>

This will post to the url you are currently at, and should therefore reload the page (assuming there is no post handler to get in the way)
Sysdom.com - Monitoring and Support Services (Launching Feb 2011)