EchoFool Posted December 1, 2009 Share Posted December 1, 2009 Hey - just quick question on where i am going wrong with an array... i currently have this in a form: <input type="input" maxlength="4" name="Values[]" value="" style="height: 15px; width: 50px;"> 4 of them in total. Then the value is an inputted number from the user.... now on the process i have: <?php //SQLskip is injection prevention function $Var = Array(SQLskip($_POST['Values'])); Echo $Var[0]; ?> But i am returned with Array when i echo. What have i got wrong? Link to comment https://forums.phpfreaks.com/topic/183660-array-on-form/ Share on other sites More sharing options...
rajivgonsalves Posted December 1, 2009 Share Posted December 1, 2009 it already comes in as an array so your code should be $Var = SQLskip($_POST['Values']); Link to comment https://forums.phpfreaks.com/topic/183660-array-on-form/#findComment-969383 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.