I'm able to get my ajax working by passing the variables in the url like:
But I'm wondering how I would go about retreiving values on 'page.php' that aren't posted via the link, I want to use something like POST as certain characters will break the link, so the link will be like:
I'm using louie's code(http://www.eire-webdesign.ie/blog/2007/11/13/dependant-select-box-using-ajax/http://www.eire-webdesign.ie/blog/2007/11/13/dependant-select-box-using-ajax/) as a guide!
Any ideas?
Code:
<input type="submit" value="Submit" onclick="getcontent('page.php?var='+this.value, 'cpost');"/>
Code:
<input type="submit" value="Submit" onclick="getcontent('page.php', 'cpost');"/>
Any ideas?