i want to do this by including files in php, but using JS...
dont get what i mean? heres the code:
<script>
function liveForm(form){
document.getElementById("formText").innerHTML = "<?php include 'set/text/" + form + ".php'; ?>"
}
</script>
thats the js...
heres the form:
<form name="donatedrop" method="post" onChange="java script:lifeForm()"> <select name="select"> <option value="regdon">Regular donations by Direct Debit</option> <option value="oneoff">One-off donation by Credit Card</option> <option value="bequest">Make a bequest</option> <option value="giftaid">Gift Aid</option> <option value="member">Become a Member</option> <option value="check">Write Check</option> <option value="bankord">Regular Banker's Order</option> </select> </form> <div id="formText"> </div>
now could someone tell me why it doesnt work?
cheers!
Joe
