Jump to content

click and change but no form


TheFilmGod

Recommended Posts

I have 5 different buttons on the top of every page. I want a user to be able to click on the top on any page and change it to what they want. This isn't a form but is a <ul><li></li></ul> .

 

I was thinking to make it a link that redirects the user to go that page that processes the php, but then I want the php code to redirect them back. So in summary, I want php code to be executed without them being redirected. I know ajax is possible but I don't want to rely solely on javascript...

 

Any suggestions?

Link to comment
Share on other sites

sounds to my like you know your options.

 

1) take them to the processing page which will redirect them back to the original (usually fast enough so they don't even know what happened)

I would suggest creating a message so the users know that the process was finished successfully after redirecting you back (if it's not obvious by itself)

 

or

 

2) ajax it, which relies on JS and PHP

 

 

 

=======

My solution would be both, of course :P

 

there's a reason the <noscript> tags exist!

 

If JS can't be used on the users browser, then you set up your page to go to the php and make those sum-bitches who turn off their JS reload the page.

If JS CAN be used, then the AJAX works, and everyone is happy :P

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

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

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.