I need to pass two form variables twice. What I am doing is allowing users to design signs online. They have the option for a border color or no border. This is an example:
if $POST['bordercolor'] == "none"
then bordercolor="$POST['bg_color']"
else bordercolor="$_POST['bordercolor']"
What this is doing is making the border color the same as the background if they choose no border. The syntax in the example is not correct, I know that. What I am wondering is can I declare the variable as a seperate variable and pass that value in the second instance, like so:
##at the topof the page##
$POST['bordercolor'] == $bordercolor
$POST['bg_color'] == $background
##in table##
if $_POST['bordercolor'] == "none"
then bordercolor="$background"
else bordercolor="$bordercolor"
Again, I know the syntax is incorrect, I know the correct synax (for this case anyways). I just need to know how to pass the variable twice. I am not using a database.