View Full Version : $_GET["name"]
01-24-2010, 01:33 AM
in a simple $_get from a form, how would I do something like this that works:
The name of the form field(s) is Question0# and there will be alot so im using variables that increase inbetween each question so that I dont have to change it myself.
01-24-2010, 02:08 AM
You would be better off naming your variables in your html as arrays so that you can use
You could use
i suppose. It all depends on the context of your use
01-24-2010, 02:25 AM
Or I could acually just do this
I did that once but with quotes so I guess thats why it didnt work, thanks though
01-24-2010, 04:48 PM
Or you could just do as Jay suggested and increment it automatically without any phaffing, and use an array for the values.
$x = 0;
[rest of code here]
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.