Help - Search - Members - Calendar
Full Version: Form to send Email containing input data and graphic counter
HTMLHelp Forums > Programming > Server-side Scripting
halberdier25
Hi,

Sorry first post is a request, but there is something that is needed to be done for and EAA chapter I am a part of. I'll go ahead and explain everything if it might help.

I would like the webcode for something along these lines:

I would like a form requesting:

--Volunteer Name (Box)
--Volunteer Email (Box)
--Day available (Dropdown of Fri, Sat, Sun

and would send an email to an account with the data. The form would then generate a graph (titled " Number of Volunteers") of sorts.

The graph would have three columns, Fri, Sat, and Sun

Bars would rise from the bottom. For instance, if someone signed up for Saturday, the bar above Sat would go up one value.

There would be a "minimum" bar running across the Fri bar at the 15 value and on the Sat and Sun bars at the 85 value. There would be an "ideal" line running across all three bars at the 100 value.

Hope this is possible. Just would like some help or something with it. I am completely new to scripting of this type. I have made HTML forms before, but nothing this complex.

Thanks,
Brian Chandler
Yes it's possible - but there is no "webcode" for this; you need a simple database system.

Why do you need to send the stuff by email - simply have a web page that shows the current status. You can either generate an image for the graph, or with a bit of ingenuity construct it out of bits of html/css formatting.

Incidentally you need to be clear if there is really only "Fri-Sat-Sun", or whether this happens every week.
halberdier25
Only once.

Sorry, I'm fairly new to web making and only know HTML even to a certain point. I can ask around to people I think may know it. Thanks! This gives me a start.
lavazza
QUOTE
you need a simple database system


QUOTE(halberdier25 @ Jun 28 2007, 02:43 AM) *

Only once.

Sorry, I'm fairly new to web making and only know HTML even to a certain point.


As you're new to web design and it's only a one-off, I the word 'need' might be somewhat inappropriate

If security is NOT an issue then an automated email can be written (relatively) easily like so:
CODE
    <a     href="mailto:        ABC_YOUR_EMAIL_ADDRESS_@_YOUR_ISP_DOT.COM_XYZ
            ?subject=        ABC_WRITE_A_SUBJECT_LINE_HERE_XYZ
            &body=    ABC_WRITE_A_FIRST_LINE_HERE_XYZ
            ,%0A%0A        My name is:
            %0A%0A        I want to volunteer for Friday | Saturday | Sunday
            ">            ABC_WRITE_YOUR_LINK_TEXT_HERE_XYZ
    </a>


Clicking on the link will fire up a visitor's default email application (e.g Outlook, Thunderbird etc)

-------

If thats too amateurish/unsecure, I would suggest a javascript <form> where the values from text boxes and select (dropdown) lists
are used to generate either a similar (i.e. visitors email application) message or a message sent via a formmail script - but for this you'd need a cgi-php script or similar loaded on your server... this approach offers, I suspect, more than enough security for a one-off local, volunteer community event and it's not hard to set up... IF you know what you're doing


Darin McGrew
You have two separate requirements here.

QUOTE(halberdier25 @ Jun 26 2007, 06:04 PM) *
I would like a form requesting:

--Volunteer Name (Box)
--Volunteer Email (Box)
--Day available (Dropdown of Fri, Sat, Sun

and would send an email to an account with the data.
This part is easy. See the FAQ entry How do I get form data emailed to me?

QUOTE(halberdier25 @ Jun 26 2007, 06:04 PM) *
The form would then generate a graph (titled " Number of Volunteers") of sorts.
This part is harder, and it has nothing to do with the form itself. It has everything to do with the server-side (e.g., CGI, PHP) program that processes the form data. One of these CGI calendar programs or PHP calendar programs may meet your needs. If not, then it sounds like you'll need someone to create a custom calendar program for you. See also the FAQ entries Where can I learn about CGI? and Where can I learn about PHP?
halberdier25
Ok, thanks guys, this helps a ton.
TherapyDropOut
Hi, I am brand new here. I stumbled on this tonight and I think it is what you are looking for. Tell me what you think of it if you try it.

Follow these three links.

http://inet.lccc.wy.edu/formdemo/
http://elearn.lccc.wy.edu/inet1580/soc/Blat/pdf/blat.pdf
http://www.blat.net/194/

It is a free download that will generate an email to you after the user inputs his information in the form.
biggrin.gif
Darin McGrew
Is there anything preventing your blat form handler from becoming a spam gateway?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.