Advertisement

12.01.2006 at 12:05PM PST, ID: 22079589
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.2

How can I create a form using PHP that users can fill out and produce a PDF file (using fpdf) with the calculations done based on what was filled out in the form?

Asked by The_Big_Tuna in PHP for Windows

I am not skilled enough with PHP to understand how to let users fill in a form with a little information that will kick out the results to a PDF file for users to download.  Hence...I am turning to experts (thats you).  I have read through countless forums and it looks like this would help out a lot of people (hence the high points for it).  I think FPDF would be a good tool...but I dont know if it will allow me to create a PDF proposal and just update the fields with the form information.  

This is what I need:
The below form illistrates the basic idea: users fill in how many of Item1, Item2, etc, and those quantities are multiplied against variable costs that we set (i.e. $1.95) and the total is produced in the total field...then all of this is populated in a predesigned PDF format proposal.  So...this is how it would look on the back end:
(Item1 x $9.95) + (Item2 x $4.95) + (Item3 x $1.95) + (Item4 x $3.95) + (Item5 x $9.95) + (Item6 x $8.95) = total
I would like to be able to add fields later and put them into that formula too.  
Here is the basic form layout:

<form id="form1" name="form1" method="post" action="">
<table width="400" border="0" cellspacing="0" cellpadding="5">
  <tr>
    <td width="200" align="right">Number of Item #1 </td>
    <td><input name="item1" type="text" size="10" /></td>
  </tr>
  <tr>
    <td width="200" align="right">Number of Item #2</td>
    <td><input name="item2" type="text" size="10" /></td>
  </tr>
  <tr>
    <td width="200" align="right">Number of Item #3</td>
    <td><input name="item3" type="text" size="10" /></td>
  </tr>
  <tr>
    <td width="200" align="right">Number of Item #4</td>
    <td><input name="item4" type="text" size="10" /></td>
  </tr>
  <tr>
    <td width="200" align="right">Number of Item #5</td>
    <td><input name="item5" type="text" size="10" /></td>
  </tr>
  <tr>
    <td width="200" align="right">Number of Item #6 </td>
    <td><input name="item6" type="text" size="10" /></td>
  </tr>
  <tr>
    <td width="200" align="right">Total cost </td>
    <td><input name="total" type="text" size="10" /></td>
  </tr>
</table>
</form>

Thanks again for the help. You all rock.  If it turns out good...maybe I can put a note in the code thanking you so other see it too!  Start Free Trial
[+][-]12.02.2006 at 01:56PM PST, ID: 18060966

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.02.2006 at 02:17PM PST, ID: 18061011

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.16.2006 at 12:46PM PST, ID: 18152544

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.16.2006 at 12:50PM PST, ID: 18152570

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: PHP for Windows
Sign Up Now!
Solution Provided By: CycnoAB
Participating Experts: 2
Solution Grade: A
 
 
[+][-]01.11.2007 at 11:47PM PST, ID: 18299586

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]01.16.2007 at 03:14PM PST, ID: 18328578

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32