Results 1 to 3 of 3

Thread: Ajax in JavaScript to pass to PHP

Threaded View

  1. #1
    Join Date
    Dec 2012

    Ajax in JavaScript to pass to PHP

    I’m using radio buttons (‘countries’) to open dropdown-box of its corresponding ‘cities’.
    The variable ‘radioPressed’ detects the selected radio button and I need to pass its value inside my JavaScript to a PHP, as follows:

      var radioPressed = 123;
      <?php $what_is_myVar = radioPressed ; ?>
    Since the solution can be complicated, I would ask to receive an advice only regarding the main steps of how to pass the value of 'radioPressed' into $what_is_myVar

    Thanks a lot for any assistance,
    Last edited by blsn; 01-07-2013 at 09:31 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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

Recent Articles