Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- setelah di klik.. lebih baik apa yg km klik nongol di atas jgn
- dibawah!!
- */
- $s="<p><ol>";
- if($_POST)
- {
- foreach($_POST[c] as $id){
- $s.="<li>tampilkan data dengan id=$id";
- $s.=" dan kotak input harganya ";
- $s.="<input type=text name=price[$id] />";
- }
- }
- $s.="</ol>";
- echo "<form method=post name=update >";
- for($i=100;$i<110;$i++)
- {
- $s.="<br><input type=checkbox name='c[]'
- value='$i' />{tebal}$i{/tebal}";
- }
- $s=str_replace("{tebal}","<strong>",$s);
- $s=str_replace("{/tebal}","</strong>",$s);
- echo $s;
- ?>
- <input type=submit value='go' />
- </form>
- *Klik terserah.. klik sebagian ato cuma 1.. perhatian apa yg terjadi setelah di klik
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement