Re: A little help please....



<?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:

<P> 1. 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>
<P> 2. 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>
<P> 3. 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

.



Relevant Pages

  • Re: [PHP] PHP console script vs C/C++/C#
    ... My script is taking a longer time to execute than I want. ... I prefer to write in PHP because that is what I know best. ... This is why I am thinking about rewriting my whole script in a C language. ... Perhaps there are different methods I could be using to speed up execution. ...
    (php.general)
  • Re: How to Add a Feeback Form
    ... I saw nothing in that script that indicates where the form is e-mailed to so ... Greg Maxey/Word MVP ... PHP or not. ... have the support available yet. ...
    (microsoft.public.frontpage.programming)
  • How best to show PHP source? (was: One page, multiple submit buttons)
    ... script to add to the top of a PHP script to enable showing its ... Maybe anybody submitting their own PHP code for critique here ... Anything posted to a newsgroup is a "snapshot" of what the ... there ought to be a FAQ for this ...
    (comp.lang.php)
  • Re: [PHP] PHP console script vs C/C++/C#
    ... My script is taking a longer time to execute than I want. ... I prefer to write in PHP because that is what I know best. ... thinking about rewriting my whole script in a C language. ... execution of the code. ...
    (php.general)
  • Email form script
    ... I have a web form that posts to a .php ... who cannot run .php on their server. ... Or does anyone have a .asp script that will ... Thank you for choosing FormToEmail by FormToEmail.com ...
    (microsoft.public.scripting.jscript)