![]() Topic awaiting preservation: Repeating a Block of Text/HTML (Page 1 of 1) |
|
---|---|
Paranoid (IV) Mad Scientist From: Inside THE BOX |
![]() OK, OK, I hate to post this here, but I couldn't decide which scripting forum to place it in since the whole question in the first place is about the best method for doing this ... |
Paranoid (IV) Inmate From: USA |
![]() PHP, Perl, Python, or any server-side language can do the trick. You can store the questions/answers in a data structure, and then print them out (possibly multiple times each) in the order that you want them to go. |
Bipolar (III) Mad Librarian From: Berlin (almost) |
![]() If you have PHP available you could have two big arrays, which contain all the questions and answers, in a PHP block at the top of the file, and then further down wherever you want to have them outputted echo() the stuff in the appropriate order. code: <?php
code: echo $quesions[1] . $answerd[1];
|
Paranoid (IV) Mad Scientist From: Inside THE BOX |
![]() |
Bipolar (III) Inmate From: Darwin, NT, Australia |
![]() Wes, Wes, tut, tut; not at all like you |
Paranoid (IV) Mad Scientist From: Inside THE BOX |
![]() |
Bipolar (III) Inmate From: Darwin, NT, Australia |
![]() Wes, tell me you didn't miss it again, puuuleeeze! Perhaps all this verbing is affecting my hearing |
Paranoid (IV) Mad Scientist From: Inside THE BOX |
![]() |