Jump to content

PHP Form Processor Question


StillLearning11

Recommended Posts

Hello everyone,

 

I am working on a project for my counselor that I have found to be pretty difficult despite my skills. I have several years of experience in HTML, CSS, etc... but very little PHP. Ok, so she has a form that she uses to evaluate patients which is a very large and difficult form and she is tired of manually filling it out on pen & paper so she has asked me to make this form electronic so that she can fill it out on the computer and then print.

 

I have setup a hosting account where I am using a form processor. The tedious problem here is that she will be the only one using the script and she wants to print her results from the computer with it looking identical to the paper version which I have. I am building an HTML and CSS template using the tables method which is working great and looks just like the form. The problem is that alot of the questions on the form are in a "rating" setup. For example (Depressed 0 1 2 3) to where she will select the level of depression with 3 being the highest. She wants this to be printed with all of the numbers visible but the selected number being circled. There are many questions just like the one above but I would like to know if to start off with, is this script even capable of this? The second thing I would like to know is can the results show ALL of the numbers but the number she selected be circled?

 

The script's documentation explains alot such as how to place ($values) into my template to place the form input directly into it so I have that part covered. This script is just called FormMail and can be found at tectite.com in case anyone would like to check out it's code....it's free for download and open source.

 

I would greatly appreciate any answers that anyone may have, I'm ready to pull my hair out on this project because I would like to have it done by early next week and I'm totally stuck on what I was asking!!!

 

Thanks!

--Allen

Link to comment
Share on other sites

I'll give you a couple different examples:

 

1. You can use radio buttons - the will print just how they look on your pc/mac with whichever one is checked as well

2. Check boxes - pretty much the same as radio buttons

3. Images -

    lets say there are options 1 - 5, create 5 images, one for each number being circled, then do something like,

if($rating = 5){echo '<img src="rating5.jpg">';}

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.