473,406 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

A little help please....

I have a piece of software that generates surveys in HTML and then
"should" email the data to me. The script that was used by the survey
was pulled from the public domain and I have to come up with another
way of doing it. The following is the HTML generated by the program:

<P1. Do you favor the potential Hernando County ordinance requiring a
"super majority" for approving changes to the Hernando County
Comprehensive Plan?</P><P><DIR>
<INPUT TYPE="RADIO" NAME="SQQ1" VALUE="1">Yes<BR>
<INPUT TYPE="RADIO" NAME="SQQ1" VALUE="2">No<BR>
<INPUT TYPE="RADIO" NAME="SQQ1" VALUE="3">I don't understand the
issue.<BR>
<INPUT TYPE="RADIO" NAME="SQQ1" VALUE="4">I understand but am
undecided.<BR>
</P></DIR>
<P2. How long have you lived in Hernando County?</P><P><DIR>
<INPUT TYPE="CHECKBOX" NAME="SQQ2" VALUE="1 ">Less than 1 year<BR>
<INPUT TYPE="CHECKBOX" NAME="SQQ2" VALUE="2 ">Between 1 and 5 years<BR>
<INPUT TYPE="CHECKBOX" NAME="SQQ2" VALUE="3 ">Between 5 and 10
years<BR>
<INPUT TYPE="CHECKBOX" NAME="SQQ2" VALUE="4 ">Between 10 and 15<BR>
<INPUT TYPE="CHECKBOX" NAME="SQQ2" VALUE="5 ">Between 15 and 20
years<BR>
<INPUT TYPE="CHECKBOX" NAME="SQQ2" VALUE="6 ">More than 20 years<BR>
</P></DIR>
<P3. Do you own a business in Hernando County?</P><P><DIR>
<INPUT TYPE="RADIO" NAME="SQQ3" VALUE="1">Yes<BR>
<INPUT TYPE="RADIO" NAME="SQQ3" VALUE="2">No<BR>

I need to know what the PHP script would be that would take the input
from this HTML and then email it to me. The required format for the
response is:

SQQ1:

1

SQQ2:

4

SQQ3:

2

The format is required for the software to automatically pull the data
into the software for cross-tabs and report generation.

The developer of the sofware isn't a script/PHP person and depended
upon the hosting company that pulled the script from the public domain.

Any help would be appreciated I've spent the better part of the day
working on it but just don't have the PHP skills (yet!). I can get an
email but can't get the script to load the various values of SQQx and
the response value. Something tells me an array is necessary but I
haven't been successful.

Thanks in advance.

Ken

Sep 27 '06 #1
2 1221
<?php

extract($_POST);

print $SQQ1."<br />";
print $SQQ2."<br />";
print $SQQ3."<br />";

?>

~A!
Ken.Blair wrote:
I have a piece of software that generates surveys in HTML and then
"should" email the data to me. The script that was used by the survey
was pulled from the public domain and I have to come up with another
way of doing it. The following is the HTML generated by the program:

<P1. Do you favor the potential Hernando County ordinance requiring a
"super majority" for approving changes to the Hernando County
Comprehensive Plan?</P><P><DIR>
<INPUT TYPE="RADIO" NAME="SQQ1" VALUE="1">Yes<BR>
<INPUT TYPE="RADIO" NAME="SQQ1" VALUE="2">No<BR>
<INPUT TYPE="RADIO" NAME="SQQ1" VALUE="3">I don't understand the
issue.<BR>
<INPUT TYPE="RADIO" NAME="SQQ1" VALUE="4">I understand but am
undecided.<BR>
</P></DIR>
<P2. How long have you lived in Hernando County?</P><P><DIR>
<INPUT TYPE="CHECKBOX" NAME="SQQ2" VALUE="1 ">Less than 1 year<BR>
<INPUT TYPE="CHECKBOX" NAME="SQQ2" VALUE="2 ">Between 1 and 5 years<BR>
<INPUT TYPE="CHECKBOX" NAME="SQQ2" VALUE="3 ">Between 5 and 10
years<BR>
<INPUT TYPE="CHECKBOX" NAME="SQQ2" VALUE="4 ">Between 10 and 15<BR>
<INPUT TYPE="CHECKBOX" NAME="SQQ2" VALUE="5 ">Between 15 and 20
years<BR>
<INPUT TYPE="CHECKBOX" NAME="SQQ2" VALUE="6 ">More than 20 years<BR>
</P></DIR>
<P3. Do you own a business in Hernando County?</P><P><DIR>
<INPUT TYPE="RADIO" NAME="SQQ3" VALUE="1">Yes<BR>
<INPUT TYPE="RADIO" NAME="SQQ3" VALUE="2">No<BR>

I need to know what the PHP script would be that would take the input
from this HTML and then email it to me. The required format for the
response is:

SQQ1:

1

SQQ2:

4

SQQ3:

2

The format is required for the software to automatically pull the data
into the software for cross-tabs and report generation.

The developer of the sofware isn't a script/PHP person and depended
upon the hosting company that pulled the script from the public domain.

Any help would be appreciated I've spent the better part of the day
working on it but just don't have the PHP skills (yet!). I can get an
email but can't get the script to load the various values of SQQx and
the response value. Something tells me an array is necessary but I
haven't been successful.

Thanks in advance.

Ken
Sep 28 '06 #2
my*************@gmail.com wrote:
>
<?php

extract($_POST);

print $SQQ1."<br />";
print $SQQ2."<br />";
print $SQQ3."<br />";

?>
But you need it in text format, right?
How about something like:

<?php
foreach ($_POST as $key=>$val) {
print $key . ":\n" . $val . "\n";
}
?>
Sep 28 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: rmn | last post by:
Hi, I'm looking for the translation betwen the color spaces, but I must be mistaken with the methods to use, losing the values. Please, I need a little help of a "coloured guru"....
3
by: Ron Stephens | last post by:
I posted to my web site a fun little program called merlin.py today. Please keep in mind that I am a hobbyist and this is just a little hack, if you look at the code you will see that it is still...
2
by: hicham | last post by:
Hi, I am looking for help, i would like to know how can i use the endian.h and config.h to convert compiled files under solaris from BIG-ENDIAN to compiled files LITTLE-ENDIAN. I am working...
2
by: Slash | last post by:
I often do a lot of text-mode programming in Linux and wanted to use colors in text mode, and found the ncurses library needlessly complex for small applications. So I wrote my own little header to...
8
by: Perception | last post by:
Hello all, If I have a C-like data structure such that struct Data { int a; //16-bit value char; //3 ASCII characters int b; //32-bit value int c; //24-bit value }
2
by: Daniel | last post by:
I'm new to .Net and all of its abilities so I hope this makes sense. Basically I'm confused on when is the appropriate time to use web forms controls vs. regular HTML. For example in ASP...
13
by: junky_fellow | last post by:
Hi guys, I need to convert a big endian integer to little endian integer. (the integer is 4 bytes in size on my implementation). I came up with the following code. I need your comments on...
3
by: ThaDoctor | last post by:
Hi. I am quite new to C++ so I think I would ask here what I am doing wrong with this code. I am writing a little game in a text console, but here is something that is in no way related to the...
23
by: Niranjan | last post by:
I have this program : void main() { int i=1; if((*(char*)&i)==1) printf("The machine is little endian."); else printf("The machine is big endian."); }
3
by: Ethan Furman | last post by:
len wrote: I've never had the (mis?)fortune to work with COBOL -- what are the files like? Fixed format, or something like a dBase III style? I
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.