Nothing to do with Cake.

Jeremy Burns
Class Outfit

[email protected]
http://www.classoutfit.com

On 19 Feb 2011, at 18:24, Krissy Masters wrote:

> Seriously?
> 
> All that and just error with radio? No one is going to read that. Also not
> even any clue as to what your attempting to do? Spry? Where is the Cake
> code? What controller / Model?
> 
> This is a CakePHP board...not general PHP!
> 
> Good luck. Come back with a Cakephp question!.
> 
> K
> 
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf
> Of mamakemmett
> Sent: Friday, February 18, 2011 10:32 AM
> To: [email protected]
> Subject: can anybody help me with this code
> 
> 
> <?php
>       session_start();
> ?>
> <?php
>       include('../includes/header.php');
>       connect_db();
>       
>       $u_id = $_GET['UserID'];
>       
>       $query = mysql_query("SELECT * FROM userinformation WHERE
> UserID=$u_id");
>       $fetchuser = mysql_fetch_array($query);
>       
>       $u_user = $fetchuser['Username'];
>       $u_pass = $fetchuser['Password'];
>       $u_fname = $fetchuser['UserFirstName'];
>       $u_lname = $fetchuser['UserLastName'];
>       $u_email = $fetchuser['UserEmail'];
>       $u_ic = $fetchuser['UserIc'];
>       $u_mobile = $fetchuser['UserPhone'];
>       $u_altphone = $fetchuser['UserAltPhone'];
>       $u_dob = $fetchuser['UserDOB'];
>       $u_gender = $fetchuser['UserGender'];
>       $u_race = $fetchuser['UserRace'];
>       $u_add = $fetchuser['UserAddress'];
>       $u_state = $fetchuser['UserState'];
>       $u_postal = $fetchuser['UserPostalCode'];
>       $u_level = $fetchuser['UserRole'];
> ?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> <html xmlns="http://www.w3.org/1999/xhtml";>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
> <title>Edit User</title>
> <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
> <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet"
> type="text/css" />
> <style type="text/css">
> <!--
> body,td,th {
>       font-family: Arial, Helvetica, sans-serif;
>       font-weight: bold;
> }
> -->
> </style>
> <link href="text.css" rel="stylesheet" type="text/css" />
> <style type="text/css">
> <!--
> .style1 {color: #FFFF00}
> .style2 {
>       color: #FFFFFF;
>       font-size: 12px;
> }
> .style3 {font-size: 12px}
> .style5 {color: #FFFFFF}
> -->
> </style>
> <body background="Image/bg copy.jpg">
> <table width="1024" align="center" border="0" cellpadding="0"
> cellspacing="0">
>       <tr><td background="Image/glass.png">
>            <table width="960" border="0" align="center" cellpadding="1"
> cellspacing="1">
>               <tr>
>               <td colspan="3" height="100" background="Image/header
> Symphony
> copy.jpg">&nbsp;</td>
>            </tr>
>            <tr>
>               <td height="20" colspan="3" align="center"
> bgcolor="#334B67"><div align="center">
>                 <ul id="MenuBar1" class="MenuBarHorizontal">
>                   <li> home.php <strong>HOME</strong>
> 
> </li>
>                   <li> # <strong>STUDIO</strong> 
>                     <ul>
>                        <li> # Add Studio </li>
>                                               <li> # Overall List Studio
> </li>
>                     </ul>
>                   </li>
>                   <li> # RATE 
>                     <ul>
>                        <li> # Current Rate </li>
>                        <li> # Edit Rate </li>
>                     </ul>
>                   </li>
>                    <li> # MEMBERLIST 
>                      <ul>
>                        <li> add_user.php Add User </li>
>                        <li> overall_list_member.php User List </li>
>                      </ul>
>                    </li>
>                    <li> # GALLERY </li>
> 
> </ul>
>              </div></td>
>            </tr>
>            <tr>
>                 <td width="200" height="900" bgcolor="#334B67"
> valign="top">&nbsp;
>                <table width="190" border="0" align="center"
> class="textArialBold">
>                       <tr>
>                       <td width="179" height="10"
> align="center">Welcome<br
> /> 
>                       <?php echo $_SESSION['u_level']; ?><br />
>                                 <?php echo $_SESSION['u_user']; ?></td>
>            </tr>
>                    <tr>
>                       <td class="textArialBold"><div align="center"
> class="style3"> logout.php Logout </div></td>
>                  </tr>
>                 </table>
>              </td>
>              <td width="560" bgcolor="#334B67" valign="top"
> align="center"><br />
>                <form action="submit_edit_user.php" method="post"
> name="updateuserform">
>                <table border="0" align="center">
>                    <tr>
>                        <td colspan="3" class="textContactMenu">Login
> Details</td>
>                  </tr>
>                    <tr>
>                        <td width="150"
> class="textContactNumber">Username</td>
>                        <td>:</td>
>                        <td width="400">
> 
>                        <input type="text" maxlength="20" name="tuser"
> value="<?php echo $u_user ?>" />
>                          </td>
>                  </tr>
>                    <tr>
>                        <td>Password</td>
>                        <td>:</td>
>                        <td>
> 
>                        <input type="password" maxlength="20" name="tpass"
> value="<?php echo $u_pass ?>" />
>                          </td>
>                    </tr>
>                    <tr>
>                        <td colspan="3">&nbsp;</td>
>                    </tr>
>                    <tr>
>                        <td colspan="3">Member Details</td>
>                    </tr>
>                    <tr>
>                        <td>First name</td>
>                        <td>:</td>
>                        <td>
> 
>                        <input type="text" maxlength="20" name="tfname"
> value="<?php echo $u_fname ?>" />
>                          </td>
>                    </tr>
>                    <tr>
>                        <td>Last name</td>
>                        <td>:</td>
>                        <td>
> 
>                        <input type="text" maxlength="20" name="tlname"
> value="<?php echo $u_lname ?>" />
>                          </td>
>                    </tr>
>                    <tr>
>                        <td>Email Address</td>
>                        <td>:</td>
>                        <td>
> 
>                        <input type="text" size="40" maxlength="40"
> name="temail" value="<?php echo $u_email ?>" />
>                          </td>
>                    </tr>
>                    <tr>
>                        <td>New IC Number</td>
>                        <td>:</td>
>                      <td>
> 
>                        <input type="text" maxlength="15" name="tic"
> value="<?php echo $u_ic ?>" />
>                        (Eg. 770512991234)</td>
>            </tr>
>                    <tr>
>                        <td>Mobile Phone</td>
>                        <td>:</td>
>                        <td>
> 
>                          <input type="text" maxlength="15" name="tmobile"
> value="<?php echo $u_mobile ?>" />
>                          (Eg. 012-1234567, 03-12345678)</td>
>            </tr>
>                    <tr>
>                        <td>Alternate Telephone</td>
>                        <td>:</td>
>                        <td>
> 
>                          <input type="text" maxlength="15" name="talt"
> value="<?php echo $u_altphone ?>" /> 
>                          (Eg. 012-1234567, 03-12345678)</td>
>            </tr>
>                    <tr>
>                        <td>Date of Birth</td>
>                        <td>:</td>
>                        <td class="textArialBold"><?php echo $u_dob ?></td>
>                    </tr>
>                    <tr>
>                        <td class="textContactNumber">Gender</td>
>                        <td>:</td>
>                        <td class="textContactNumber">
> 
>                         <?php
> 
>                                               $male_status = 'unchecked';
>                                               $female_status =
> 'unchecked';
> 
>                                               if
> (isset($_POST['Submit1'])) {
> 
>                                               $selected_radio =
> $_POST['UserGender'];
> 
>                                               if ($selected_radio ==
> 'male') {
>                                               $male_status = 'checked';
>                                               }else if ($selected_radio ==
> 'female') {
>                                               $female_status = 'checked';
>                                               }
>                                               }
> 
>                                               ?>
>                                               <Input type = 'Radio' Name
> ='rgender' value= 'male' 
>                                               <?php print $male_status; ?>
>                                               >Male
> 
>                                               <Input type = 'Radio' Name
> ='rgender' value= 'female' 
>                                               <?php print $female_status;
> ?>
>                                               >Female </td>
>                    </tr>
>                    <tr>
>                        <td>Race</td>
>                        <td class="textContactNumber">:</td>
>                        <td>
> 
>                          <?php 
>                                                       if($u_race ==
> "malay")
>                                                               $r1_selected
> = "selected";
>                                                       elseif ($u_race ==
> "chinese")
>                                                               $r2_selected
> = "selected";
>                                                       elseif ($u_race ==
> "indian")
>                                                               $r3_selected
> = "selected";
>                                                       elseif ($u_race ==
> "other")
>                                                               $r4_selected
> = "selected";
>                                                 ?>
>                         <select name="orace" class="textContactNumber">
>                           <option>-Select Race-</option>
>                           <option value="malay" <?php echo $r1_selected
> ?>>Malay</option>
>                           <option value="chinese" <?php echo $r2_selected
> ?>>Chinese</option>
>                           <option value="indian" <?php echo $r3_selected
> ?>>Indian</option>
>                           <option value="other" <?php echo $r4_selected
> ?>>Other</option>
>                         </select>
>                          </td>
>                    </tr>
>                    <tr>
>                        <td class="textContactNumber">Address</td>
>                        <td class="textContactNumber">:</td>       
>                      <td>
> 
>                        <textarea name="tadd" cols="30" rows="4"
> class="textContactNumber"><?php echo $u_add ?></textarea>
>                        </td>
>                  </tr>
>                    <tr>
>                        <td class="textContactNumber">State</td>
>                        <td>:</td>       
>                        <td>
> 
>                          <?php
>                                                       if($u_state ==
> "johor")
>                                                               $s1_selected
> = "selected";
>                                                       elseif($u_state ==
> "kedah")
>                                                               $s2_selected
> = "selected";
>                                                       elseif($u_state ==
> "kelantan")
>                                                               $s3_selected
> = "selected";
>                                                       elseif($u_state ==
> "melaka")
>                                                               $s4_selected
> = "selected";
>                                                       elseif($u_state ==
> "negeri sembilan")
>                                                               $s5_selected
> = "selected";
>                                                       elseif($u_state ==
> "pahang")
>                                                               $s6_selected
> = "selected";
>                                                       elseif($u_state ==
> "perak")
>                                                               $s7_selected
> = "selected";
>                                                       elseif($u_state ==
> "perlis")
>                                                               $s8_selected
> = "selected";
>                                                       elseif($u_state ==
> "penang")
>                                                               $s9_selected
> = "selected";
>                                                       elseif($u_state ==
> "sabah")
>       
> $s10_selected = "selected";
>                                                       elseif($u_state ==
> "sarawak")
>       
> $s11_selected = "selected";
>                                                       elseif($u_state ==
> "selangor")
>       
> $s12_selected = "selected";
>                                                       elseif($u_state ==
> "terengganu")
>       
> $s13_selected = "selected";
>                                                       elseif($u_state ==
> "kuala lumpur")
>       
> $s14_selected = "selected";
>                                                       elseif($u_state ==
> "labuan")
>       
> $s15_selected = "selected";
>                                                       elseif($u_state ==
> "putrajaya")
>       
> $s16_selected = "selected";
>                                                 ?>
>                        <select name="ostate">
>                          <option>-Select State-</option>
>                          <option value="johor" <?php echo $s1_selected;
> ?>>Johor</option>
>                          <option value="kedah" <?php echo $s2_selected;
> ?>>Kedah</option>
>                          <option value="kelantan" <?php echo $s3_selected;
> ?>>Kelantan</option>
>                          <option value="melaka" <?php echo $s4_selected;
> ?>>Melaka</option>
>                          <option value="negeri sembilan" <?php echo
> $s5_selected; ?>>Negeri Sembilan</option>
>                          <option value="pahang" <?php echo $s6_selected;
> ?>>Pahang</option>
>                          <option value="perak" <?php echo $s7_selected;
> ?>>Perak</option>
>                          <option value="perlis" <?php echo $s8_selected;
> ?>>Perlis</option>
>                          <option value="penang" <?php echo $s9_selected;
> ?>>Penang</option>
>                          <option value="sabah" <?php echo $s10_selected;
> ?>>Sabah</option>
>                          <option value="sarawak" <?php echo $s11_selected;
> ?>>Sarawak</option>
>                          <option value="selangor" <?php echo $s12_selected;
> ?>>Selangor</option>
>                          <option value="terengganu" <?php echo
> $s13_selected; ?>>Terengganu</option>
>                          <option value="kuala lumpur" <?php echo
> $s14_selected; ?>>Kuala Lumpur</option>
>                          <option value="labuan" <?php echo $s15_selected;
> ?>>Labuan</option>
>                          <option value="putrajaya" <?php echo
> $s16_selected; ?>>Putrajaya</option>
>                        </select>
>                          </td>
>                  </tr>
>                    <tr>
>                        <td class="textContactNumber">Postal Code</td>
>                        <td class="textArial">:</td>
>                        <td>
>                        <input name="tpostal" type="text"
> class="textContactNumber" maxlength="5" value="<?php echo $u_postal; ?>" />
> 
>                        </td>
>            </tr>
>            <tr>
>               <td class="textArial style3 style5">User Level</td>
>                <td class="textArial style3 style5">:</td>
>                <td class="textArial">
> 
>                            <?php
> 
>                                               $Admin_status = 'unchecked';
>                                               $User_status = 'unchecked';
> 
>                                               if
> (isset($_POST['Submit1'])) {
> 
>                                               $selected_radio =
> $_POST['UserRole'];
> 
>                                               if ($selected_radio ==
> 'Admin') {
>                                               $Admin_status = 'checked';
>                                               }else if ($selected_radio ==
> 'User') {
>                                               $User_status = 'checked';
>                                               }
>                                               }
> 
>                                               ?> 
>                        <Input type = 'Radio' Name ='rlevel' value= 'Admin' 
>                                               <?php print $Admin_status;
> ?>
>                                               >Admin
> 
>                                               <Input type = 'Radio' Name
> ='rlevel' value= 'User' 
>                                               <?php print $User_status; ?>
>                                               >User                 </td>
>            </tr>
>                    <tr>
>                        <td colspan="3" align="right">
> 
>                          <input type="reset" value="Reset" />
> 
>                          <input type="submit" value="Send" />
>                        </td>
>                    </tr>
>                </table>
>                <input type="hidden" name="hd_uid" value="<?php echo $u_id
> ?>" />
>                </form>
> 
> 
>              </td>
>  <td width="200" bgcolor="#334B67" valign="top" align="center">&nbsp;
> <table>
>                       <tr>
>                               <td align="center"> Image/booking number.gif
> </td>
>                      </tr>
>                        <tr>
>                               <td align="center"><p class="textArial
> style5
> style3">ALOR SETAR<br />
>                604-7355 268 / 69<br />
>                604-7355 270</p>
>                  <p class="textArial style5 style3">AMPANG<br />
>                  603-4252 0816 / 17<br />
>                  603-4252 0815</p>
>                  <p class="textArial style5 style3">IPOH<br />
>                  605-2861 770 / 771<br />
>                  6019-217 3333<br />
>                  605-2861 777</p>
>                  <p class="textArial style5 style3">KAJANG<br />
>                  603-8724 6179<br />
>                  603-8724 6179</p>
>                  <p class="textArial style5 style3">KERTEH<br />
>                  6016-9534666<br />
>                  6010-2000210<br />
>                  </p>
>                  <p class="textArial style5 style3">KUALA TERENGGANU<br />
>                  609-667 0770<br />
>                  </p>
>                  <p class="textArial style5 style3">KUCHING<br />
>                  6082-345 800<br />
>                  6082-346 800<br />
>                  6012-322 8883<br />
>                  6082-346 800</p>
>                  <p class="textArial style5 style3">MELAKA<br />
>                  606 - 334 1041<br />
>                  6017-678 8182<br />
>                  606-334 1039</p>
>                  <p class="textArial style5 style3">PENANG<br />
>                  604-397 9876 / 96<br />
>                  604-3979 896</p>
>                  <p class="textArial style5 style3">SHAH ALAM<br />
>                  603-5510 5212 / 13<br />
>                  603-5510 5215</p>
>                  <p class="textArial style5 style3">SUBANG GRAND<br />
>                  603-5621 7891 / 92<br />
>                  603-5621 7893</p>
>                  <p class="textArial style5 style3">SUNGAI BULOH<br />
>                  603-6157 2136<br />
>                  603-6157 2137</p>
>                  <p class="textArial style5 style3">TAMPIN<br />
>                  606-441 2220<br />
>                606-441 2215</p></td>
>                       </tr>
>                               </table>
>                </td>
>            </tr>
>            <tr>
>               <td colspan="3" height="10" bgcolor="#334B67">&nbsp;</td>
>            </tr>
>            <tr>
>               <td colspan="3" height="10" bgcolor="#334B67"><table
> cellspacing="0" cellpadding="0">
>                 <tr>
>                   <td width="868" valign="middle"
> bgcolor="#334B67">&nbsp;</td>
>                   </tr>
>                 </table></td>
>            </tr>
>            </table>
>            </td>
>        </tr>
> </table>
> <script type="text/javascript">
> <!--
> var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1",
> {imgDown:"SpryAssets/SpryMenuBarDownHover.gif",
> imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
> //-->
> </script>
> </body>
> </html>
> 
> i got many errors on radio button and combo box...
> -- 
> View this message in context:
> http://cakephp.1045679.n5.nabble.com/can-anybody-help-me-with-this-code-tp33
> 91120p3391120.html
> Sent from the CakePHP mailing list archive at Nabble.com.
> 
> -- 
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org 
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
> 
> 
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group at
> http://groups.google.com/group/cake-php
> 
> -- 
> Our newest site for the community: CakePHP Video Tutorials 
> http://tv.cakephp.org 
> Check out the new CakePHP Questions site http://ask.cakephp.org and help 
> others with their CakePHP related questions.
> 
> 
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group at 
> http://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to