Re: Php Survey(Questionnaire), Need Help!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Just to point out something -- you don't need a separate PHP file.  
You can have the form submit to itself (i.e. action="<?php echo  
$_SERVER["PHP_SELF"] ?>") and then just have that one file handle all  
of the legwork. One less file, one less thing to keep up with. This  
really depends on your approach, but for form mailers and such it's a  
lot easier to deal with.
--
Joe

On May 7, 2009, at 11:01 AM, Davide Baglieri wrote:

>
>
> Create a HTML form and send the datas to a PHP script that will manage
> them and calculate the result.
>
> <form name="myform" action="yourPHPscript.php" methot="post">
> <label for="question">Question</label><input type="checkbox"
> id="question" name="answer" />
> </form>
>
> In yourPHPscript.php you should include all necessaries functions:
> - Save the datas in a database (if you have interested on it)
> - manipulate the datas
> - Send some visual output to the user.


[Non-text portions of this message have been removed]


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux