Jump to content

Archived

This topic is now archived and is closed to further replies.

scallywag05

Forms & using jpGraph

Recommended Posts

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">&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> [/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.