Thread
:
eval variables syntax
View Single Post
#
2
(
permalink
)
07-09-03, 04:49 AM
Chris Boulton
Wannabe Coder
Join Date: Jun 2003
Location: Sydney, Australia
Posts: 208
Thanks: 0
Thanked 0 Times in 0 Posts
Here is a simple fix...
Change all the textbox names's to something like this answer[1],answer[2],answer[3] etc.
Then change your code to something like
PHP Code:
<?php
while(list(
$key
,
$val
) =
each
(
$answer
)) {
echo
"
$key
-
$val
<br>"
;
}
?>
That code will output something like
1 - Answer for Q1
2 - Answer for Q2
__________________
Chris Boulton
SurfiOnline!
MyBulletinBoard
Chris Boulton
View Public Profile
Visit Chris Boulton's homepage!
Find all posts by Chris Boulton