-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestform.html
More file actions
56 lines (52 loc) · 1.5 KB
/
testform.html
File metadata and controls
56 lines (52 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<html>
<head>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(drawChart);
function drawChart() {
var i;
var e=new Array(5);
for(i=0;i<5;i++)
{
e[i]=[i,i];
}
var data = google.visualization.arrayToDataTable(e);
var options = {
title: 'Age vs. Weight comparison',
hAxis: {title: 'Age', minValue: 0, maxValue: 15},
vAxis: {title: 'Weight', minValue: 0, maxValue: 15},
legend: 'none'
};
var chart = new google.visualization.ScatterChart(document.getElementById('chart_div'));
chart.draw(data, options);
}
</script>
</head>
<body>
<form action="" method="GET" name="bargame">
<table border="0" >
<tr><b>Bar Capacity </b></br>
</tr>
<tr>
<td><input type="radio" name="Bars_based" value="PercentBased"/> Percent Based: </td><td><input type ="text" name="percentBars" size="5 "/></td>
</tr>
</table>
</br>
<b>Population Variables </b></br>
<table border="0" >
<tr>
<td>Number of Agents: </td><td><input type="text" name="numAgent" size="15" /></td>
</tr>
<tr>
<td>Number Of Turns: </td><td><input type="text" name="numTurns" size="15" /></td>
</table>
</br>
<input type="submit" onclick="main(this.form)" value="Simulate!" />
</form>
<?php
$a=array("a"=>"Dog","b"=>"Cat","c"=>"Horse");
print_r($a);
?>
</body>
</html>