.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Programming (http://forums.bots-united.com/forumdisplay.php?f=25)
-   -   Coding If's (http://forums.bots-united.com/showthread.php?t=5459)

Ancient 30-06-2006 23:38

Coding If's
 
I looked on some ebooks and I am not fully aware of what the problem is.

www.cfe-clan.com/testing-trial/clans.php?id=register the if's are under the number of clan founders and should run off of the radio butons.

Here is the code I have
Code:

echo '
<td align="center">Number of Clan Founders
<input type="radio" name="founders" value="1">1&nbsp;&nbsp;
<input type="radio" name="founders" value="2">2&nbsp;&nbsp;
<input type="radio" name="founders" value="3">3&nbsp;&nbsp;
<input type="radio" name="founders" value="4">4&nbsp;&nbsp;
<input type="radio" name="founders" value="5">5&nbsp;&nbsp;
<input type="radio" name="founders" value="more"> More than 5
</td>
</tr>
<tr>
<td>';
 
if (founders == '1')
echo '<input type="text" name="founders2" size="20"><br />
';
 
elseif (founders == '2')
echo '<input type="text" name="founders2" size="20"><br />
<input type="text" name="founders2" size="20"><br />
';
 
elseif (founders == '3')
echo '<input type="text" name="founders2" size="20"><br />
<input type="text" name="founders2" size="20"><br />
<input type="text" name="founders2" size="20"><br />
';
 
elseif (founders == '4')
echo '<input type="text" name="founders2" size="20"><br />
<input type="text" name="founders2" size="20"><br />
<input type="text" name="founders2" size="20"><br />
<input type="text" name="founders2" size="20"><br />
';
 
elseif (founders == '5')
echo '<input type="text" name="founders2" size="20"><br />
<input type="text" name="founders2" size="20"><br />
<input type="text" name="founders2" size="20"><br />
<input type="text" name="founders2" size="20"><br />
<input type="text" name="founders2" size="20"><br />
';
 
elseif (founders == 'more')
echo '<textarea name=\'founders2\' rows=12 cols=25></textarea>
';


Ancient 01-07-2006 01:24

Re: Coding If's
 
I fixed the problem and it's working great, I created 2 pages because PHP is server side, and Java would have bugs.


All times are GMT +2. The time now is 14:28.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.