$_post $var - how to post as a variable $_post $var - how to post as a variable
how to post $_POST[$var.$id], I wanted to create a variable that looped through a counter based on the number of fields on the form and input them into a database. I didn't always know how many fields were on the form so i created this mini script to loop through;
$nofields =$_POST['nofields']; //no of fields submitted
$a=1; //counter start
while ($a<=$nofields) {
$fn="varname".$a;
$fieldname=$_POST[$fn];
echo "$fieldname";
$a=$a+1;
}
}
}
Trending right now
Some things I am selling please look through thank you Are you a commercial electrical company How to get my site listed in google in quickly Natural Cure for hayfever Forty five great places to leave your advertising material that will actually get read My child is being bullied at school Why You Should Launch Your Business Now and Ditch the Quest for Perfection How to flip rotate an image using css Healing pneumonia with raw ginger Money from random strangers Letter to write to Universal Credit if they are taking money off you for council tax arrears If not paying council tax was unlawful.... To get a free starter from pizza express simply enter this code How to tie a tie What to say if the police have arrived with the bailiffs. 6 weeks to achieve your goal chart. How to sell your stuff online and for free Good businesses to start with no experience Weird fish salmon pink hoody size l it is a bit bobbly otherwise good condition You do not want to get better Why are the vaccinated not actually vaccinated Learning to Love Yourself How to get more customers Add your todo list here What different Text Ads Types are available for Google ADWORDS Are cows really responsible for global warming Promote your youtube videos to boost views How to get your site listed in search engines How to unmark posting as spam on facebook
|