I hate to ask an obvious question but I'm trying not to mess up
anything worse than it is already. I have all these variables in-
line. Can I do an include and take them off the file into an included
file?
$with_reserve = $sessionVars["SELL_with_rese rve"];
$reserve_price = $sessionVars["SELL_reserve_p rice"];
$minimum_bid = $sessionVars["SELL_minimum_b id"];
$pict_url=$sess ionVars["SELL_pict_ url"];
$imgtype = $sessionVars["SELL_file_uplo aded"];
$title = $sessionVars["SELL_title "];
$description = $sessionVars["SELL_descripti on"];
$pict_url = $sessionVars["SELL_pict_ url"];
$atype = $sessionVars["SELL_atype "];
$adultonly = $sessionVars["SELL_adultonly "];
$iquantity = $sessionVars["SELL_iquantity "];
$buy_now = $sessionVars["SELL_with_buy_ now"];
$buy_now_price = $sessionVars["SELL_buy_now_p rice"];
$duration = $sessionVars["SELL_durat ion"];
$relist = $sessionVars["SELL_relis t"];
$increments = $sessionVars["SELL_increment s"];
$customincremen t = $sessionVars["SELL_custominc rement"];
$country = $sessionVars["SELL_count ry"];
$location_zip = $sessionVars["SELL_location_ zip"];
$shipping = $sessionVars["SELL_shipp ing"];
$shipping_terms = $sessionVars["SELL_shipping_ terms"];
$payment = $sessionVars["SELL_payme nt"];
$international = ($sessionVars["SELL_internati onal"])?"on":"";
$sellcat = $_SESSION['sellcat'];
$invitedlists = $sessionVars["SELL_invitedli sts"];
$private = $sessionVars["SELL_priva te"];
if($private != 'y') $private = 'n';
$sendemail = $sessionVars["SELL_sendemail "];
$blacklists = $sessionVars["SELL_blacklist s"];
$txt = $sessionVars["SELL_txt"];
$num = $sessionVars["SELL_num"];
$buy_now_only = $sessionVars["SELL_buy_now_o nly"];
Here are my includes:
include './includes/config.inc.php' ;
include $include_path.' dates.inc.php';
include $include_path.' auction_types.i nc.php';
include $include_path.' countries.inc.p hp';
include $include_path.' datacheck.inc.p hp';
include $include_path.' wordfilter.inc. php';
include $include_path.' converter.inc.p hp';
include $include_path.' functions.inc.p hp';
So would it be something like:
include $include_path.' variables.inc.p hp';
assuming it is in the includes directory?
thanks you have been a great help.
anything worse than it is already. I have all these variables in-
line. Can I do an include and take them off the file into an included
file?
$with_reserve = $sessionVars["SELL_with_rese rve"];
$reserve_price = $sessionVars["SELL_reserve_p rice"];
$minimum_bid = $sessionVars["SELL_minimum_b id"];
$pict_url=$sess ionVars["SELL_pict_ url"];
$imgtype = $sessionVars["SELL_file_uplo aded"];
$title = $sessionVars["SELL_title "];
$description = $sessionVars["SELL_descripti on"];
$pict_url = $sessionVars["SELL_pict_ url"];
$atype = $sessionVars["SELL_atype "];
$adultonly = $sessionVars["SELL_adultonly "];
$iquantity = $sessionVars["SELL_iquantity "];
$buy_now = $sessionVars["SELL_with_buy_ now"];
$buy_now_price = $sessionVars["SELL_buy_now_p rice"];
$duration = $sessionVars["SELL_durat ion"];
$relist = $sessionVars["SELL_relis t"];
$increments = $sessionVars["SELL_increment s"];
$customincremen t = $sessionVars["SELL_custominc rement"];
$country = $sessionVars["SELL_count ry"];
$location_zip = $sessionVars["SELL_location_ zip"];
$shipping = $sessionVars["SELL_shipp ing"];
$shipping_terms = $sessionVars["SELL_shipping_ terms"];
$payment = $sessionVars["SELL_payme nt"];
$international = ($sessionVars["SELL_internati onal"])?"on":"";
$sellcat = $_SESSION['sellcat'];
$invitedlists = $sessionVars["SELL_invitedli sts"];
$private = $sessionVars["SELL_priva te"];
if($private != 'y') $private = 'n';
$sendemail = $sessionVars["SELL_sendemail "];
$blacklists = $sessionVars["SELL_blacklist s"];
$txt = $sessionVars["SELL_txt"];
$num = $sessionVars["SELL_num"];
$buy_now_only = $sessionVars["SELL_buy_now_o nly"];
Here are my includes:
include './includes/config.inc.php' ;
include $include_path.' dates.inc.php';
include $include_path.' auction_types.i nc.php';
include $include_path.' countries.inc.p hp';
include $include_path.' datacheck.inc.p hp';
include $include_path.' wordfilter.inc. php';
include $include_path.' converter.inc.p hp';
include $include_path.' functions.inc.p hp';
So would it be something like:
include $include_path.' variables.inc.p hp';
assuming it is in the includes directory?
thanks you have been a great help.
Comment