Hi all,
I have a problem that I cant solve, any help would be welcomed!
I have a form which is repeated by a for loop, the form has one element an
input field. The problem im having is the name of this field for example ive
used the following to name it:
for loop here
input name=value?php
The server probably has global variables turn off
Try $_GET['value1'], $_GET['value2']
If you using post method then replace $_GET with $_POST
On Thursday 09 October 2003 00:51, richard cook wrote:
Hi all,
I have a problem that I cant solve, any help would be welcomed!
I have a form
] Variable Nightmare
The server probably has global variables turn off
Try $_GET['value1'], $_GET['value2']
If you using post method then replace $_GET with $_POST
On Thursday 09 October 2003 00:51, richard cook wrote:
Hi all,
I have a problem that I cant solve, any help would be welcomed
Okay I think this is what you want. If you want $myNewVarX too you should be
able to figure it out.
Check out php.net/manual/en/language.variables.variable.php
for loop blah
$myNewVar = ${'value'.$x};
Also, you may want to consider just naming every field value[], which
results in
4 matches
Mail list logo