Hi,
I have a html table with data from mysql database.
To each row in the html table there is an edit button. When i click on the edit button, I want data from the cells of that row to be added into the fields of a form, so to edit it and send to a php script.
Do you have a simple example or a link? I found only complicated variants which I not understand.
Adding data from html table in form fields
-
- Posts: 65
Adding data from html table in form fields
Admin
Hi,
Here is a simple and easy example: https://coursesweb.net/javascript/add-da ... -fields_s2
Just study the javascript code, and adapt it to your html table.
Here is a simple and easy example: https://coursesweb.net/javascript/add-da ... -fields_s2
Just study the javascript code, and adapt it to your html table.
Similar Topics
-
Adding HTML content from javascript /iQuery into a form
JavaScript - jQuery - Ajax
First post
For day`s i`m busy to improve my comment systemLast post
& no I`m ready to place a url extractor but I hope
you can support me by this-one....
I want...
It depends where you want to add the html content from javascript in the form, on the beginning, or at the end after other elements.
Se the: 2.... -
Select in mysql table with password from form not work
PHP - MySQL
First post
hello,Last post
i have a problem with this code:
if(isset($_POST ))
{
$txt_login= mysqli_real_escape_string($con,$_POST );
$txt_pass=...
thank you for your help.
i can find this problem!
it was a space line in user_password=' $hashed_password' in register code.
all of the passwords... -
mysql not insert data from form
PHP - MySQL
First post
i have two php files:Last post
the index.php ---
<?php
$id = 3 ;
if(!empty($_POST )) {
$conn = mysql_connect( localhost , website_rent , password...
I not know way it not works; maybe data from the resulted sql query is not ok for that mysql table structure.
If there is no message with errors,... -
Adding data from from url in Pagination Class
Scripts from this website
First post
Chief I hope you don't get a headache from meLast post
About a year and a half ago you added an id detection from url in the pagination class from...
The pagination class has a method getLinks(str) that returns the pagination links with the value from $str in href attribute.
In the place where you... -
Adding php data into javascript object
PHP - MySQL
First post
Hello! I want to add some php code in this javascript sectionLast post
<script>
$(document).ready(function() {
$('#calendar').fullCalendar({...
if what you want is to add js objects from php in the 'events' array in javascript, try this:
<?php
$arr =[
,
];
$jsob =[];
foreach($arr as...