php - Change values in array by forms values send -
I have 2 arrays.
The first array in the text contains table names for ordinary db
Each table has the value of the second array.
When I send my form from the form and the value of the table table is equal, send the value to the form.
Script:
& lt ;? Php if (send $ _ POST == "OK") {/// Structure This is fixed in that, array_1 and 2 /// $ table = "name, phone, surname"; $ Values = "John, 55543232, johny25"; /// Explosion values in each case /// $ exp_tables = explosion (",", $ table); $ Exp_values = explosion (",", $ value); /// To get value for each field array /// $ i = 0; Foreign exchange ($ exp_tables $ exp_table as) {$ {$ exp_table} [] = "". $ Exp_values [$ i] ""; $ I ++; } /// To get the BQL results, if the Verses send from the equivalent form of other wars and send the changes by the new value then form /// foreach ($ exp_tables $ as table) {foreach ($ _ POST as $ Key = & gt; $ value) {if ($ table == "." $ Key "") {print "" $ _ POST [$ table] ""; } Else {print "". $ {$ Table} {0} ""}}}}}? & Gt; HTML Forms
& amp; Ltd.
Comments
Post a Comment