PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old April 15th, 2004, 10:11 AM
junaidy junaidy is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 1 junaidy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs up PHP -Dealing with html form (checkbox,radio button, dropdown list)

hello, i need a help when dealing with form.html. as example,
when members update their profile, the php process all the input, checkbox, radio button and update into mysql database field. but, my php update script failed to do that.
//---form.html
//--update.php
Attached Files
File Type: txt update.php.txt (3.9 KB, 7571 views)
File Type: txt form.html.txt (38.5 KB, 6937 views)

Reply With Quote
  #2  
Old May 6th, 2004, 09:25 AM
digitallysmooth digitallysmooth is offline
you know how we do
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jun 2002
Posts: 785 digitallysmooth User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 34 m 21 sec
Reputation Power: 17
Line 76 should be:
PHP Code:
 $result mysql_query("SELECT * FROM $table WHERE uid = '$uid' "); 

Line 79 should be:
PHP Code:
 $query="UPDATE $table SET name='$fullname',nickname='$nickname',birth='$birt  h',address='$address',postcode='$postcode',country  ='$country',gender='$gender',race='$race',language  ='$language',status='$status',mobile_maker='$mobil  e_maker',house='$house',transport='$transport',occ  upation='$occupation',monthly_income='$monthly_inc  ome',job_stud='$job_stud',education='$education',i  nterest='$interest',leisure='$leisure',smoker='$sm  oker',cc_usage='$cc_usage',if_cc_usage='$if_cc_usa  ge',know_friend='$know_friend',last_update='".NOW()."' WHERE uid='$uid'"

Line 83 should be:
PHP Code:
 $query="UPDATE $table2 SET email='{$_POST[email]}',homepage='{$_POST[homepage]}' WHERE uid='$uid'"
__________________
__________________________________________________ _
Wil Moore III, MCP | Integrations Specialist | Senior Consultant
Are You Listed...? | DigitallySmooth Inc.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > PHP -Dealing with html form (checkbox,radio button, dropdown list)


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap