This topic is locked
[SOLVED]

 checkbox on registration page

3/14/2006 11:55:07 AM
PHPRunner General questions
A
arrowhot author

For example - I want to give the new user the option to be on the mailing list with a simple checkbox. I assume the best datatype to use in the mysql data defintion is boolean (1/0).
But is it possible to change the way a particular registration page field works? (the input statement) There is a lot of flexibility in list and edit pages for data appearance, but I can't find anywhere that the initial registration page can be tailored a bit (without hacking, of course).
Cheers,
Gil

Sergey Kornilov admin 3/15/2006

Gil,
open register.php file and replace

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

</td>

<td width="50%">

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



with

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

</td>

<td width="50%">

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



where GroupID is your field name.
We plan to implement this in one of the following versions.