<form action="duzenle.php" method="POST" autocomplete="on">
Ad Soyad <input type="text" name="name" id="aaa">
<br> <br>
Telefon <input type="number" name="tel" placeholder="">
<br> <br>
E-Posta <input type="mail" name="mail" placeholder="">
<br> <br>
Cari Kart Kodu <input type="number" name="cck" placeholder="">
<br> <br>
Olusturma Tarihi <input type="date" name="createdate">
<br> <br>
<input type="submit" class="button" value="Listele" name="bb">
<br> <br>
<input type="submit" style="position: absolute;left:69px;top:207px; class="button value="Güncelle" name="bc">
<select name="data_id" id="data_id">
<option value="1">1.Data</option>
<option value="2">2.Data</option>
<option value="3">3.Data</option>
</select>
<input type="submit"value="Data Göster" name="www" onclick="myFunction()">
<br> <br>
<script>
function myFunction()
{
var a= document.getElementById("aaa").values;
}
So i take the inputs from the user and save it to sql.What i am trying to do is when i click the data göster(show data) button it should automatically fill the Ad Soyad(name-surname),Telefone(phone) etc.
I tried using getElementById method but couldn't figure out.Thank you.
İlk öncə values yox value və, hansısa input elementinin daxilinə SQL-dən məlumat ötürmək istəyirsinizsə bunun üçün Ajax texnologiyasından istifadə edə bilərsiniz.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.