PHP ফর্ম পরীক্ষা - ফর্ম সম্পাদনা করার উদাহরণ
- Previous Page PHP Form URL/E-mail
- Next Page PHP বহুমাত্রিক আর্রে
এই অধ্যায়ে আমরা দেখব কিভাবে একটি ফর্ম সম্পাদনা করে রাখা যায় যখন ব্যবহারকারী ফর্ম সম্পাদনা করেন
PHP - ফর্মের মানের মানক
একটি কোনো সামগ্রী সম্পাদনা করার জন্য আপনাকে প্রস্তুত করুন এবং একটি নতুন সামগ্রী সম্পাদনা করার জন্য আপনাকে প্রস্তুত করুন।
Then, we also need to display which radio button is selected. For this, we must operate the checked attribute (not the value attribute of the radio button):
Name: <input type="text" name="name" value="<?php echo $name;?>"> E-mail: <input type="text" name="email" value="<?php echo $email;?>"> Website: <input type="text" name="website" value="<?php echo $website;?>"> Comment: <textarea name="comment" rows="5" cols="40"><?php echo $comment;?></textarea> Gender: <input type="radio" name="gender" <?php if (isset($gender) && $gender=="female") echo "checked";?> value="female">Female <input type="radio" name="gender" <?php if (isset($gender) && $gender=="male") echo "checked";?> value="male">Male
PHP - Complete Form Example
Below is the complete code for the PHP form validation example:
Example
- Previous Page PHP Form URL/E-mail
- Next Page PHP বহুমাত্রিক আর্রে