Jump to content

Forms & using jpGraph


scallywag05

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]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.