Hi All,
Quick query for a PHP pro i think.
I have a javascript function that will load a CSV file in to a grid:
[CODE]function load(url){
table.setURL(url);
table.request();
}
<button onClick=”load(‘http://URLTONEWFILE.CSV’)”>Load New File</button>
This works perfectly, however I need to take it a step further to load CSV files, based on user choices from two drop down boxes. Something like this:
[CODE]
<form name=”myform””>
<select name=”mycolour”>
<option value=”red”>RED</option>
<option value=”yellow”>YELLOW</option>
<option value=”blue>BLUE</option>
</select>
<select name=”myshape”>
<option value=”square”>SQUARE</option>
<option value=”circle”>CIRCLE</option>
<option value=”triangle”>TRIANGLE</option>
</select>
<button onClick=”load(‘http://mysite.com/csv/mycolour_myshape.csv’)”>Load New File</button>
</form>
So the bit i need assistance with is the php code required to generate the onClick URL in this format:
[QUOTE]
‘
Any ideas?
Many thanks for your help.
Matt