这是我的代码文件。
当我进入模态页面时,按钮中的值不起作用。
它什么也没显示,但我想要的是用PHP显示当前的电话号码
当我点击index.php时没有显示任何内容,但是当我输入update_details.php的网址时它会起作用
这是在update_profile上显示的,显示电话号码,但在index.php上不起作用
<a href="editProfile.php" data-toggle="modal" data-target="#myModal" >
<?php
echo '<img src="data:image/jpeg;base64,'.base64_encode( $img ).'" alt="Click Me" height="50" width="70" class="img-circle profile_img" />';
?>
</object>
</a>
<form enctype="multipart/form-data" onsubmit="return validate()" name="edit" method="post">
<?php
$sql = "SELECT * FROM users WHERE username = '$usn'";
$result = mysqli_query($conn , $sql);
$row = mysqli_fetch_assoc($result);
?>
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" >New Image:
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input id="name" name="newImage" type="file" />
</div>
</div>
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" >New Phone Number
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input id="name" class="form-control col-md-7 col-xs-12" name="new_phone" value="<?php echo $row["phone_num"]; ?>" type="tel"/>
</div>
</div>
<div class="form-group">
<div class="col-md-6 col-md-offset-3">
<button type="reset" class="btn btn-primary">Clear</button>
<button id="send" type="submit" name="editbtn" class="btn btn-success">Submit</button>
</div>
</div>
</form>