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
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>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.