pass variables

By admin  

pass variables
How php pass multiple variables to the javascript?

I'm using PHP and JavaScript, together with AJAX. I want my php script to return 3 sets data that my JavaScript function stateChanged (). I want to enter some data from the innerHTML document.getElementById ( "question"), some in response document.getElementById ( ""), and some in document.getElementById ( "answer2"). At this point, the best way I can think is an echo in my PHP file: echo " This is the question here "Echo" This is the answer "Echo" This is the answer2 "And then use regular expressions in the Javacript to parse the file and process it. Is there an easier way?

in javascript stateChanged () (var question = document.getElementById ( "question"). value var AN1 = document.getElementById ( "response"). value; an2 var = document.getElementById ( "answer2"). value; my_go_to_loc var = "something.php? question =" + question + "& AN1 =" + AN1 + "& AN2 =" + an2; my_go_to window.location = = my_go_to_loc;)

Passing Variables Through Batch Files


SSL EV2.200 EVOLUTION 200W, 2 Channel Power Amplifier


SSL EV2.200 EVOLUTION 200W, 2 Channel Power Amplifier


$28.34


Fixed low pass crossover: 120 Hz Variable input gain control Power & protection LED indicators Line & speaker level inputs Chrome plated RCA connectors & screw terminals Freq resp: 12 Hz – 22 kHz (+/-3 dB) 200W max 50W x 2 @ 4 ohm Signal-to-noise ratio: 90 dB THD @ RMS output: 0.01% Damping factor: 125+ Dim: 5″L x 9″W x 1.75″H…

Jensen Power900 900-Watt Mono Amplifier (Grey)


Jensen Power900 900-Watt Mono Amplifier (Grey)


$79.99


2 ohm stable Variable low pass filters 40 Hz – 240 Hz (12 dB per octave) Variable bass boost 0 – 12 dB at 45 Hz Low level pass through RCA?s Encapsulated power & speaker connectors Protection circuit that safeguards against short circuits, DC-offset thermal overload Green operation & red protection LEDs Includes remote input level control Peak power: 900W Nominal output power: 1 x 300…

Jensen Power1050 1050-Watt Mono Amplifier (Grey)


Jensen Power1050 1050-Watt Mono Amplifier (Grey)


$91.95


2 ohm stable Variable low pass filters 40 Hz – 240 Hz (12 dB per octave) Variable bass boost 0 – 12 dB at 45 Hz Low level pass through RCA?s Encapsulated power & speaker connectors Protection circuit that safeguards against short circuits, DC-offset thermal overload Green operation & red protection LEDs Includes remote input level control Peak power: 1050W Nominal output power: 1 x 35…


Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay

Post a Comment

Your email is never shared. Required fields are marked *

*
*
Powered by Yahoo! Answers