Jump box onChange - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Jump box onChange

ThemisThemis Posts: 73Member
Could you help me with the following problem I have?
I have a jump box and I give three options to the user. I want when the user chooses one option to call a php function. I've searched a bit and I found the following example:
[code]

[/code]
In the above example onChange calls a JavaScript function. I've tried to use a php function instead with no result however. How can I call a php function every time the selection changes?

Thanks, Themis

Comments

  • DarQDarQ Posts: 1,625Member
    toally NOT possible. PHP == serverside and JS == clientside.

    : Could you help me with the following problem I have?
    : I have a jump box and I give three options to the user. I want when the user chooses one option to call a php function. I've searched a bit and I found the following example:
    : [code]
    :
    : [/code]
    : In the above example onChange calls a JavaScript function. I've tried to use a php function instead with no result however. How can I call a php function every time the selection changes?
    :
    : Thanks, Themis
    :

    [size=5][italic][blue]Dar[RED]Q[/RED][/blue][/italic][/size]
    NEW url--> http://mark.space.servehttp.com

  • ThemisThemis Posts: 73Member
    Then, is there any way I can execute some php code when an event happens? An event could be a selection from a listbox or a click on a button other than submit. I need some way that I can get aware that an action happend in order to handle it.

    Thanx, Themis


    : toally NOT possible. PHP == serverside and JS == clientside.
    :
    : : Could you help me with the following problem I have?
    : : I have a jump box and I give three options to the user. I want when the user chooses one option to call a php function. I've searched a bit and I found the following example:
    : : [code]
    : :
    : : [/code]
    : : In the above example onChange calls a JavaScript function. I've tried to use a php function instead with no result however. How can I call a php function every time the selection changes?
    : :
    : : Thanks, Themis
    : :
    :
    : [size=5][italic][blue]Dar[RED]Q[/RED][/blue][/italic][/size]
    : NEW url--> http://mark.space.servehttp.com
    :
    :

  • DarQDarQ Posts: 1,625Member
    [red]
    the usual way. call a NEW php script and post the variables you want.

    with JS you could do something like
    onclick=javascript:self.document.location="script.php"
    [/red]

    : Then, is there any way I can execute some php code when an event happens? An event could be a selection from a listbox or a click on a button other than submit. I need some way that I can get aware that an action happend in order to handle it.
    :
    : Thanx, Themis
    :
    :
    : : toally NOT possible. PHP == serverside and JS == clientside.
    : :
    : : : Could you help me with the following problem I have?
    : : : I have a jump box and I give three options to the user. I want when the user chooses one option to call a php function. I've searched a bit and I found the following example:
    : : : [code]
    : : :
    : : : [/code]
    : : : In the above example onChange calls a JavaScript function. I've tried to use a php function instead with no result however. How can I call a php function every time the selection changes?
    : : :
    : : : Thanks, Themis
    : : :
    : :
    : : [size=5][italic][blue]Dar[RED]Q[/RED][/blue][/italic][/size]
    : : NEW url--> http://mark.space.servehttp.com
    : :
    : :
    :
    :

    [size=5][italic][blue]Dar[RED]Q[/RED][/blue][/italic][/size]
    NEW url--> http://mark.space.servehttp.com

Sign In or Register to comment.