Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8029679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T00:30:17+00:00 2026-06-05T00:30:17+00:00

I assume the answer is: it is not possible because php is server language

  • 0

I assume the answer is: “it is not possible because php is server language not client language”, but I would like someone more expert than me to state this and eventually list all possible workarounds…

Question: is it (at all) possible to have a php function executed (only) when the user “clicks” or performs some other kind of action (e.g. mouse-over) in an html page without using any javascript?

(P.S. As a workaround I considered to access an intermediate page containing the php code to be executed when the client action occurs and then redirect as needed but this is not straightforward as far as passing the results of the php code goes.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T00:30:20+00:00Added an answer on June 5, 2026 at 12:30 am

    This is not possible without making a new request.

    You must use a link to send the user to a new page (or the same page — anything as long as a new request is made), or you must use something like AJAX.


    There is actually one very hack-ish way I can think of. It’s not exactly pretty, but it should work.

    You could use an iframe as the target for a link. Basically instead of a link opening in the same or a new window, it would open in a hidden iframe.

    Untested, but in theory:

    <iframe name="testframe" id="testframe"></iframe>
    <a href="http://google.com" target="testframe">Test</a>
    

    Edit: After some rough testing, it looks like chrome will not obey this. IE9 will to some extent though, it seems.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I assume the answer is no, but I thought I'd throw the question out
My need is pretty basic but I could not find any clean answer to
Ok, so I am not sure this is even possible but I will ask
Assume a multi-party encryption scheme, similar to the answer to: Encryption with multiple different
Assume 200,000 images in a flat Amazon S3 bucket. The bucket looks something like
Forgive the question if the answer is obvious. I am certainly no COM expert.
I apologize if this question was asked already before but I could not find
I'm looking for a higher-level system language, if possible, suitable for formal verification, that
How would I server side detect if the user of the webpage is a
I have not yet found a definitive answer about this. I am trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.