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
__________________
Forum Please login or register to view this content. Registration is FREE Free Please login or register to view this content. Registration is FREE
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. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
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. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?