This topic is locked
[SOLVED]

 Registration Fields

11/2/2005 15:36:36
PHPRunner General questions
O
omegix author

I have chosen some fields to go on the registration page,

such as "First Name" "Last Name" and "Year Graduated."
Is there a way to make the "Year Graduated" a drop down list instead of

a text box on the registration page?

Sergey Kornilov admin 11/3/2005

Hi,
PHPRunner generates only text fields on Registartion page.
However you can modify generated register.php file to customize Registration page.

Change a HTML code displaying "Year graduated" input control to show select control instead of text field.

Just keep the value of "name" attribute.

D
DouglasB 3/3/2006

You don't happen to have an example of how to do this do you? For example what am I changing and what am I keeping if I have "STATES" in a look up table?
<!--state-->

<tr>
<td align=right width="50%">

<div align="left"><?php echo "state"; ?>:</div>

</td>

<td width="50%">

<input type=text name="userinfo<?php echo $ind;?>" value="<?php if(isset($userinfo[$ind])) echo htmlspecialchars($userinfo[$ind]);?>" >

</td>
<?php $ind++; ?>

</tr>

Hi,

PHPRunner generates only text fields on Registartion page.
However you can modify generated register.php file to customize Registration page.

Change a HTML code displaying "Year graduated" input control to show select control instead of text field.

Just keep the value of "name" attribute.

Sergey Kornilov admin 3/6/2006

Douglas,
Replace this line:

<input type=text name="userinfo<?php echo $ind;?>" value="<?php if(isset($userinfo[$ind])) echo htmlspecialchars($userinfo[$ind]);?>" >



with something like this:

<select name="userinfo<?php echo $ind;?>">

<option value="...">...</option>

...

</select>