Click here to Skip to main content
15,886,067 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi, I have this form

CSS
Editar Linha:

ID:
1

Name:
jonh

City:
USA

Button--> Update


so i whant to know how can i get the names of inputboxes and put their values into varibles, thanks :D
Posted
Comments
Afzaal Ahmad Zeeshan 13-Aug-15 15:26pm    
Um, not sure if PHP supports that but you may consider requesting the item by their index. I am not sure whether PHP supports that or not, sorry.
Member 11511197 13-Aug-15 15:56pm    
what suports that?? Javascript... maybe??
Afzaal Ahmad Zeeshan 13-Aug-15 16:23pm    
ASP.NET supports that. :) PHP should be compared with ASP.NET, not JavaScript.
Member 11511197 13-Aug-15 16:24pm    
Ok thanks :D, i dont know nothing about ASP.NET but thanks anyway
Sergey Alexandrovich Kryukov 13-Aug-15 16:43pm    
This is not a form. This is few lines of text. What's your problem?
—SA

1 solution

Hope the below code helps
PHP
foreach($_POST as $key => $value) {
  echo "POST parameter '$key' has '$value'";
}
 
Share this answer
 
Comments
Member 11511197 16-Aug-15 14:05pm    
thanks bro that was helpfull :D

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900