RE: [PHP] Writing to text file from Radio Buttons
| From: | Niklas Lampén | Date: | Tue, 22 Jan 2002 08:20:23 +0000 |
| Subject: | RE: [PHP] Writing to text file from Radio Buttons | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-81494@lists.php.net to get a copy of this message | ||
fwrite()?
Niklas
-----Original Message-----
From: Harphajan Singh [mailto:khalsaji99@yahoo.com]
Sent: 22. tammikuuta 2002 9:51
To: php-general@lists.php.net
Subject: [PHP] Writing to text file from Radio Buttons
Greeting dudes ! I`m a fresh user of PHP and need some technical
assistance from you folks.
I`m creating a survey form(using radio buttons) and it
looks like this :-
Q1) How do you register for the hostel ?
<input type="radio" name="reg_method"
value="phone"> By Phone
<INPUT type="radio" name="reg_method"
value="mail"> By E-Mail
<INPUT type="radio" name="reg_method"
value="office" checked> Walk-In to office
Q2)Do the authorities respond to your complaint
immediately?
<INPUT type="radio" name="responds" value="yes"> Yes
<INPUT type="radio" name="responds" value="no"
checked> No
I would like to store each entry into a text file and
view them later.Hence, I would know the unique 'VALUE'
for a particular 'NAME'(for both the Q`s) So, the
output in my textfile should look something like
<date> <Value for Q1> <Value of Q2>
I`m trying to open a file and then write to it for
instance :-
$fp = fopen("$DOCUMENT_ROOT/.../software/survey.txt",
"w");
BUT, I don`t really know how to store the unique
values for those radio buttons into my file.
Please help , dudes !
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net To
contact the list administrators, e-mail: php-list-admin@lists.php.net