php - codeigniter edit details page -


i have page user can go edit information entered himself. code:

<html> <head> <title></title> <meta http-equiv='content-type' content='text/html; charset=utf-8'>  </head> <body dir="rtl">    <?php echo form_open('profile/edit'); ?>  <h5>الاسم الكامل</h5> <input type="text" name="fullname" value="<?php echo $fullname; ?>" />  <h5>الايميل</h5> <input type="text" name="email" value="<?php echo $email; ?>"  />   <h5>الجوال</h5> <input type="text" name="mobile" value="<?php echo $mobile; ?>"  />  <h5>هاتف</h5> <input type="text" name="telephone" value="<?php echo $telephone; ?>" />  <h5>العنوان</h5> <input type="text" name="address" value="<?php echo $address; ?>"  />  <h5>نبذة عني</h5> <textarea rows="4" cols="50" name="about" value="<?php echo $about; ?>"> </textarea> <br><br>  <div><input type="submit" value="submit" /></div>  </form>  </body> </html> 

now when submit, shows me these errors:

enter image description here

i don't know happening. happens when submit form edited data. otherwise, loading correct details inside fields in first place.

your appreciated: :)

try .

<html> <head> <title></title> <meta http-equiv='content-type' content='text/html; charset=utf-8'>  </head> <body dir="rtl">    <?php echo form_open('profile/edit'); ?>  <h5>الاسم الكامل</h5> <input type="text" name="fullname" value="<?php echo (!empty($fullname)?$fullname:""); ?>" />  <h5>الايميل</h5> <input type="text" name="email" value="<?php echo (!empty($email)?$email:""); ?>"  />   <h5>الجوال</h5> <input type="text" name="mobile" value="<?php echo(!empty($mobile)?$mobile:""); ?>"  />  <h5>هاتف</h5> <input type="text" name="telephone" value="<?php echo (!empty($telephone)?$telephone:""); ?>" />  <h5>العنوان</h5> <input type="text" name="address" value="<?php echo (!empty($address)?$address:""); ?>"  />  <h5>نبذة عني</h5> <textarea rows="4" cols="50" name="about" value="<?php echo (!empty($about)?$about:""); ?>"> </textarea> <br><br>  <div><input type="submit" value="submit" /></div>  </form>  </body> </html> 

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -