Jump to content

problem to form and mysql


beboo002

Recommended Posts

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

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>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.