scallywag05 Posted April 12, 2006 Share Posted April 12, 2006 Hi,Ive created a form with options for drawing a graph assessing 2 variables. I was just wondering how i would create the php that would call the values of the selected variables from the sql database depending on the option chosen and for the month selected,the months are set up as check boxes. I was going to use jpGraph to draw the graph but am not to sure how to embed the graph within a php that contains headers and html. the code for my form is:[code]<form name="form1" method="post" action="assessment2.php"> <p><font color="#FF0000" face="Geneva, Arial, Helvetica, sans-serif"><strong>Please select one of the options below to analyse your personal log:</strong></font></p> <ul> <li> <h3><font face="Geneva, Arial, Helvetica, sans-serif"><strong>Cholesterol <font color="#FF0000">&</font> Blood Pressure <input type="radio" name="option" value="Chol_Blood"> </strong></font></h3> </li> <li> <h3><font face="Geneva, Arial, Helvetica, sans-serif"><strong> BMI <font color="#FF9900">&</font> Weight <input type="radio" name="option" value="BMI_Weight"> </strong></font></h3> </li> <li> <h3><font face="Geneva, Arial, Helvetica, sans-serif"><strong> Calories Burnt <font color="#FF0000">&</font> Blood Pressure <input type="radio" name="option" value="Calories_Blood"> </strong></font></h3> </li> <li> <h3><font face="Geneva, Arial, Helvetica, sans-serif"><strong> Calories Burnt <font color="#FF9900">&</font> BMI <input type="radio" name="option" value="Calories_BMI"> </strong></font></h3> </li> </ul><p><font color="#FF0000" face="Geneva, Arial, Helvetica, sans-serif"><strong>Please select the period you would like to track the option you selected over:<br> <font color="#000000"><em>NOTE! you can select more than one:</em></font> </strong></font></p> <table width="25%" border="1"> <tr> <td width="62%" bgcolor="#66FFCC"> <div align="left"><strong><font face="Geneva, Arial, Helvetica, sans-serif">January</font></strong></div></td> <td width="38%"><div align="center"><font face="Geneva, Arial, Helvetica, sans-serif"> <input name="jan" type="checkbox" id="jan" value="checkbox"> </font></div></td> </tr> <tr> [/code] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.