Reputation: 6149
I have 2 questions:
textbox1.Text = "hello";
), I tried <input type="text" name="name" value="<?php echo $name?> ">
and then in my php script: $name = $myObj['name'];
. Is there any other way?Thanks a lot
Upvotes: 2
Views: 121
Reputation: 1
if you want to check any checkbox if condition is satisfied the use: `
$i = 1;
<input type="checkbox" name="name-field" value="something" <?php if($i== 1){ echo "checked"; } ?> />
?>
Upvotes: -1
Reputation: 23816
<input type="text" name="name" value="<?php echo $name?>">
To check the boxes, use:
<input type="checkbox" name="check" value="1" <?php if($condition==true)echo "checked"?>>
Upvotes: 2