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 Link to comment https://forums.phpfreaks.com/topic/63530-problem-to-form-and-mysql/ 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> Link to comment https://forums.phpfreaks.com/topic/63530-problem-to-form-and-mysql/#findComment-316641 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 Link to comment https://forums.phpfreaks.com/topic/63530-problem-to-form-and-mysql/#findComment-317310 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.