"; $mbody.="Edited result for $userid

"; if($row[name]!="$name"){ $mbody.="Name : $row[name] changed to $name
"; } if($row[u_password]!="$u_password"){ $mbody.="Password : $row[u_password] changed to $u_password
"; } if($row[email]!="$email"){ $mbody.="Email : $row[email] changed to $email
"; } if($row[phone1]!="$ph1"){ $mbody.="Residential Phone : $row[phone1] changed to $ph1
"; } if($row[phone2]!="$ph2"){ $mbody.="Office Phone : $row[phone2] changed to $ph2
"; } if($row[mobile]!="$mobile"){ $mbody.="Mobile No : $row[mobile] changed to $mobile
"; } if($row[dob]!="$dob"){ $mbody.="Date of birth : $row[dob] changed to $dob
"; } if($row[sex]!="$sex"){ $mbody.="Sex : $row[sex] changed to $sex
"; } if($row[blood_group]!="$blood_group"){ $mbody.="Blood Group : $row[blood_group] changed to $blood_group
"; } if($row[rh_factor]!="$rh_factor"){ $mbody.="Rh factor : $row[rh_factor] changed to $rh_factor
"; } if($row[registered_as]!="$reg_as"){ $mbody.="Registered as : $row[registered_as] changed to $reg_as
"; } if($row[last_donated]!="$last_donated"){ $mbody.="Last blood donated : $row[last_donated] changed to $last_donated
"; } if($row[resi_address]!="$address"){ $mbody.="Residential Address : $row[resi_address] changed to $address
"; } if($row[resi_city]!="$resi_city"){ $mbody.="Residential City : $row[resi_city] changed to $resi_city
"; } if($row[resi_state]!="$resi_state"){ $mbody.="Residential State : $row[resi_state] changed to $resi_state
"; } if($row[resi_pin]!="$resi_pin"){ $mbody.="Residential Pin : $row[resi_pin] changed to $resi_pin
"; } if($row[work_address]!="$work_address"){ $mbody.="Working Address : $row[work_address] changed to $work_address
"; } if($row[work_city]!="$work_city"){ $mbody.="Working City : $row[work_city] changed to $work_city
"; } if($row[work_state]!="$work_state"){ $mbody.="Working State :$row[work_state] changed to $work_state
"; } if($row[work_pin]!="$work_pin"){ $mbody.="Working Pin : $row[work_pin] changed to $work_pin
"; } if($row[diseases]!="$diseases"){ $mbody.="Diseases : $row[diseases] changed to $diseases
"; } if($row[comment]!="$comment"){ $mbody.="Comment : $row[comment] changed to $comment
"; } $mbody.=""; $to="shresth@webbloodbank.org"; $subj="Edited informations"; $headers= "MIME-Version: 1.0\r\n"; $headers.= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers.="From : $email>\r\n"; //mail($to,$subj,$mbody,$headers); //////////////////////////////////update the fields/////////////////////////////// $sql_upd="update registered_user set name='$name',u_password='$u_password',email='$email',phone1='$ph1',phone2='$ph2',mobile='$mobile' ,"; $sql_upd.="dob='$dob',sex='$sex',blood_group='$blood_group',rh_factor='$rh_factor',registered_as='$reg_as',last_donated='$last_donated', "; $sql_upd.="resi_address='$address',resi_city='$resi_city',resi_state='$resi_state',resi_pin='$resi_pin',resi_country='$resi_country', "; $sql_upd.="work_address='$work_address',work_city='$work_city',work_state='$work_state',work_pin='$work_pin',work_country='$country', "; $sql_upd.="diseases='$diseases',comment='$comment' where loginid='$userid'"; mysql_query($sql_upd) or die($sql_upd); $msg="Your profile has been edited"; } ///////////////////display function//////////////////////////// $sql="select * from registered_user where loginid = '$userid'"; $result=mysql_query($sql) or die($sql); $row=mysql_fetch_array($result); ?> Web Blood Bank

Name*
Password *
Email* 
 
Phone no
Residence : Office :
Mobile No.
 
Date of Birth * -
Sex *
 
Blood Group * > A    > B    > AB    > O
RH Factor * > Positive    > Negative
Registered as* > Donor    > Seeker    > Both
Last Blood Donated on -
  > Donated long back
 
Residential Address *
Country
State
City
PIN
 
Work Address
Same as Above
Country
State
City
PIN
 
Additional Comments
(if any)
 

The above details furnished are true and accurate. Blood donation is a medical procedure and I accept total responsibility for any risks associated with the donation of my blood. Iím willing to be a voluntary blood donor without any inducement. I further state that no remuneration shall be accepted by me for donating blood. I further state that I have no objection if you publish my name and other particulars as a blood donor in your above site.