Jump to content

[SOLVED] change php variable name...


cyber_ghost

Recommended Posts

sorry guys... but i miss this thing for further clearer intention..

 

 

im creating now the dynamic name changing of names.. likewise...  having a golfers name in the the drop down box... which been retrieve... using ajax...

 

there are 5(five) drop down box in a group... and a group is dependent upon the selection of league leader... may even choose to have a 40 groups... once the league leader chooses a name ... besides that cell of the same row in the HTML table ...population in the additional field for the entry of comments... score... handicap and other related infos...

 

my real problem is that during saving how to i call the variables which been added to the row after selecting a name in a drop down box? variable name are same with the name of textboxes that will be created in during the name selection of player?

 

thank you

 

 

 

you mean calling the drop down box names in an array  form saving after clicking the submit button?

 

if yes, then how about the textboxes which is dynamically added using js? how those stuff are being saved?

 

ok.. what i nice mind of yours.. fellow..

 

how about changing the name of variable name in php like this scenario...

 

changing the name of variable name using loops...

 

for(loops)

 

$new_name = $old_name[loops];

 

is this possible?

so i guess this is solve

 

technique ? i don know !

all i know is that it will dynamically set the variable name

$ determine varibles in  PHP

 

so if you have a string after that $ then it will be treated as variable

thats the logic fellow ;)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.