Jump to content


Photo

Forms & using jpGraph


  • Please log in to reply
No replies to this topic

#1 scallywag05

scallywag05
  • Members
  • PipPip
  • Member
  • 14 posts

Posted 12 April 2006 - 01:51 PM

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:

<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">&amp;</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">&amp;</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">&amp;</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">&amp;</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>





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users