Jump to content

Recommended Posts

This may be an HTML or PHP problem, or Java as well. I am trying to write an alphabetical index from inside a php file. Here's what I'm trying to accomplish: PHP script searches the My SQL table A link is generated out of each itemOn clicking on the link, a php variable is setand the script moves on. I need information for a function that the onClick refers to. I've only found rudimentary examples, and none are any help. So, I'm sending the problem to you. tim

Link to post
Share on other sites

You'd need a ajax call if you used JS. Unless there's a strong reason to use JS, I'd just submit an input from a form.

Link to post
Share on other sites

In my experience I have had the href take over and ignore the onclick. Idk if that is your problem, but my solution was call the onclick, then use js to change the location.href. Pull the href from the link or your SQL, and run it after the change you wanna make to php using Ajax. Just a idea.

Edited by DarkxPunk
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.

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

Loading...
×
×
  • Create New...