Quote:
Originally Posted by Bilderback
Part 1 and Part 2 have to be the same for your answer variables.
My suggestion is to first write down all questions and answers, then add to form.
Example:
$question1 = "What is the Rabbits Name?";
$explain1 = "Please enter your real name here.";
In question1, you would only need to clean the answer1
(your own questions and explains dont need to be run through the vb input.)
Code:
// Part 1
$vbulletin->input->clean_array_gpc('p', array(
'$answer1' => TYPE_STR,
));
// Part 2
$answer1 = $vbulletin->GPC['normalanswer1'];
You also need to be sure that all the same $variables are distributed properly to the templates.
form template
Code:
<tr>
<td class="alt2" valign="middle">
<b>$question1</b>:<br />
$explain1</td>
<td class="alt2" valign="middle" colspan="2">
<input type="text" size="30" value="$answer1" name="answer1" /></td>
</tr>
answer template
Code:
$question1
$answer1
|
Thanks for that. But I really can't do it. I don't know PHP at all. I have tried tweaking it but nothing is appearing. I have tried going back to the default form and inputting it again but I am still not getting the answers appearing