Hi folks, i'm new on the forum and this is my first post (who cares?) Well, i'm also new to php and all that stuff, so i've encountered a problem which i think isn't so problematic after all. I didn't know whether to post this thread in the javascript forum or here, but i thought that the actual problem lays in php.
What i was trying to do is the following: a html form with some radio buttons and a second part which depended through a javascript to every single button an which should appear when triggered by the onClick function.
Here is just one case, in order that you understand the whole thing:
Everything works when I directly insert HTML through the javascript but it would overload the file size, so i'd like single files to load on every onClick, but the PHP include won't work, as i suppose the server isn' triggered. Can you help please?
PS the whole form is here http://www.musicandfriends.com.hr/form.php
but the PHP include won't work, as i suppose the server isn' triggered
Nope.
You cannot use a client side script to insert server side php.
Server side code runs and ends before the page is even sent to the client and javascript code starts to run.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares? Code Samples | People Counting System | Bits & Bobs
Well, now I'd like to know if it's possible to include the AJAX stuff in a variable as i have many functions in which i'd like to reuse it. Tanks in advance!
Well, now I'd like to know if it's possible to include the AJAX stuff in a variable as i have many functions in which i'd like to reuse it.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares? Code Samples | People Counting System | Bits & Bobs