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 session () but it does not pass the value

Thank you in advance.

Code to display the table:

  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; ";   

I want the next name to edit the records.

You must first enter the ID for editing each person and

  nextpage.php? Id = $ this_id   

and link to the next page as

  $ this_id = $ _REQUEST ['id'];   

then Enter a query for such records that have IDs like ID $ such as

  $ data = mysql_query ("SELECT * my_table WHE RE id = ". $ This_id);   

Then you will get all the data you like easily

  input type =" Text "name =" name "value =" & lt ;? Php $ data ['name'] ;? & Gt; "& Gt;    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -