beboo002 Posted August 6, 2007 Share Posted August 6, 2007 hello all i hav a problem to mysql procedure how we pass the value in procedure parameter to HTML form field. i am createing A HTML form login which has two field username and password and form acton call the a php script that match the value to mysql data base after matching the value we enter the another HTML form which one is employee info form here the field of form is name age,address,department,contact no.and username in this form i apply to select statement to fetch value to data base(mysql) and store the value to form here on problem is that we call single value to form not whole table. 2:-I want to same value in employee info form when usename(if username is beboo ) login to login form then all the data fetch to related to beboo fetch in employee info form . Need code also thanks Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted August 6, 2007 Share Posted August 6, 2007 each input element has a value attribute so use value="<?php echo $val; ?>"... for radio/checkboxes <?php $check = $cond == $val ? ' checked="checked"' : NULL; ?> <input type="radio" .... <?php echo $check; ?> /> for textareas <textarea><?php echo $val; ?></textarea> Quote Link to comment Share on other sites More sharing options...
beboo002 Posted August 7, 2007 Author Share Posted August 7, 2007 thanks for reply but here is one problem that same form which show the value from database is also updating database value in same form Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.