php - Why it failed to pass the value? -
i have page called memberarea.php use bootstrap tab change content according div id.
<div id="tabs-1" class="tab-pane fade in active"> <div class="tabbable tabs-left"> <br /> <ul class="nav nav-tabs" id="maincontent" role="tablist"> <li class="active"><a data-toggle="tab" href="#tabs-5" role="tab">basic information</a></li> <li><a data-toggle="tab" href="#tabs-6" role="tab">view team</a></li> </ul> <div class="tab-content"> <div id="tabs-5" class="tab-pane active"> <?php include("information.php"); ?> </div> <div id="tabs-6" class="tab-pane"> <?php include("viewteam.php"); ?> </div> <div id="tabs-14" class="tab-pane"> <?php include("editsinging.php"); ?> </div> <div id="tabs-15" class="tab-pane"> <?php include("editspeech.php"); ?> </div> <div id="tabs-16" class="tab-pane"> <?php include("editstory.php"); ?> </div> </div> </div>
in viewteam, it's display registered team
<?php $query="select * etj12singing etj12id=$id , etj12pay ='yes' "; $result =mysql_query($query); while($row= mysql_fetch_array($result)) { $siidnumber=$row['etj12idnum']; $siidtype = $row['etj12idtype']; $sifullname = $row['etj12fullname']; $sigender = $row['etj12gender']; $siemail = $row['etj12email']; $siphone = $row['etj12phone']; $sivege = $row['etj12vege']; $sipay = $row['etj12pay']; $siidsinging = $row['etj12idsinging']; ?> <tr> <td><?php echo $siidnumber; ?></td> <td><?php echo $siidtype; ?></td> <td><?php echo $sifullname; ?></td> <td><?php echo $sigender; ?></td> <td><?php echo $siemail; ?></td> <td><?php echo $siphone; ?></td> <td><?php echo $sivege; ?></td> <td><?php echo $sipay; ?></td> <td> <a data-toggle="tab" href="?idsie=<?php echo $siidsinging; ?>#tabs-14" role="tab"> <input type="submit" value="edit" class="btn-warning"/> </td> </tr>
my problem cannot pass value tabs-14(editsinging.php)
here how value in tabs-14(editsinging.php)
$idsinging=$_get['idsie'];
update
here code in editsinging.php php :
$idinst = $_session['id']; $idsinging=$_post['idsie']; $query = "select * etj12singing etj12id=$idinst , etj12idsinging=$idsinging"; $result = mysql_query($query); if($row=mysql_fetch_array($result)) { $idnum = $row['etj12idnum']; $idtype = $row['etj12idtype']; $fullname = $row['etj12fullname']; $gender = $row['etj12gender']; $email = $row['etj12email']; $phone = $row['etj12phone']; $vege = $row['etj12vege']; }
below form edit value got query above
<table style="width:100%;height:auto;border-spacing:10px;border-collapse:separate"> <tr> <td>id number<br/> <span style="font-style:italic;">(nomor identitas)</span> </td> <td> <input type="text" id="idnumber" name="idnumber" value="<?php echo $idnum; ?>" class="textbox_register"/> <input type="hidden" name="idsic" value="<?php echo $idsinging; ?>" class="textbox_register"/> <br/><label id="err1" class="error"></label> </td> </tr></table>
in viewteam file query:
$query="select * etj12singing etj12id=$id , etj12pay ='yes' ";
this content ($id) witch not defined in file; must give string (id) value. query return null results.
i think problem have.
Comments
Post a Comment