php - pass value of textfield to another textfield on next page -
I have a table on a page that appears as table:
ID name birth date school
1 ABCD XX-XX-XX XYZ 'Edit Icon'
2 PQRS XX-XX-XX LMN 'Edit Icon'
If I click the Edit icon I want to pass the name ABCD on the next page. Anyone have ideas on how to do this? I tried using Thank you in advance. Code to display the table: I want the next name to edit the records. You must first enter the ID for editing each person and and link to the next page as then Enter a query for such records that have IDs like ID $ such as Then you will get all the data you like easily session () but it does not pass the value
echo "& lt; tr & gt;"; Echo "& lt; td height = '30' & gt; & lt; a href = 'next.php? Name =". $ Info ['name']. ' '' Gt; & Lt; Img src = 'image / edit-icon png' & gt; & Lt; / A & gt; ". $ Info ['id']" & lt; / TD & gt; "; echo" & lt; TD height = '30 'id =' key '& gt; ". $ Info [' name ']" & lt; / Td> "; echo" & lt; Td height = '30' & gt; ". $ Data ['date']" & lt; / Td> "; echo" & lt; Td height = '30' & gt; ". $ Info ['school']" & lt; / Td> & Lt; / Tr & gt; ";
nextpage.php? Id = $ this_id
$ this_id = $ _REQUEST ['id'];
$ data = mysql_query ("SELECT * my_table WHE RE id = ". $ This_id);
input type =" Text "name =" name "value =" & lt ;? Php $ data ['name'] ;? & Gt; "& Gt;
Comments
Post a Comment