Results 1 to 2 of 2

Thread: [RESOLVED] Difficulty with php and javascript...

  1. #1

    Thread Starter
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,479

    Resolved [RESOLVED] Difficulty with php and javascript...

    I have an html page with links that run a javascript function for navigation. In the php files that run on clicking the links, I need a php boolean to be set to true.
    Ideally, i'd like to be able to change it when the navigation links are clicked, thereby loading a clean page. I was thinking I'd need ajax, but can I simply change a boolean in an ajax call?

    Thanks for any help...

  2. #2
    Superbly Moderated NeedSomeAnswers's Avatar
    Join Date
    Jun 2002
    Location
    Manchester uk
    Posts
    2,660

    Re: [RESOLVED] Difficulty with php and javascript...

    you could simply pass that boolean as a query string in your link

    http://www.somesite.php?boolValue=True

    or

    http://www.somesite.php?boolValue=1

    then read the query string

    https://stackoverflow.com/questions/...m-a-url-string
    Please Mark your Thread "Resolved", if the query is solved & Rate those who have helped you



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width