form variable thingy :S
Posted: Wed Mar 24, 2004 4:43 pm
k I have this array... but this is only a few of them
I want to go through the array and check to see if they are set. I was thinking like
Obviously this doesn't work but I'm just trying to plan everything out before I start coding away. Does anyone have an idea on how I can do this? This really isn't the best way to go at this anyways...
TY
Code: Select all
<?php
$formvariables = array('$type','$type_other','$logodesign','$bannerdesign','$graphicdesign','$shoppingcart',
'$interactivefeatures','$flashanimationandpresentation','$webhosting','$domainnameregistration','$sitemaintenance',
'$editingandwritting','$merchantaccount','$customscripts','$creditcardprocessing','$searchengineoptimization',
'$searchcapabilitiesonthewebsite','$databaseprogramming','$budget','$time_start','$time_frame','$description',
'$referal';
?>Code: Select all
<?php
$variable2 == 0;
foreach($formvariables as $variable){
if (isset($variable)){
$variable2[$i]=true; }
$i++
}
?>TY