how do i get certain values to "print"???? !!!!!500 points!!!

I am having much trouble with a PHP page a friend made for me.  Its an order form and some values do not print out onto the next page.  please take a look at the page   It doesnt print the final price and the name, address phone number ETC...  after you hit the finalize button, much help is needed!!! please!  thank you very much!
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

we need the source code (the original schoolorderform.php) to be able to do anything really

On your 'post' page, make sure you're referencing the variables via the $_POST[''] superglobal.


print("Name: ".$_POST['name']."<br />");

What your problem looks like is that you're not putting the subtotal, shipping and final total as "hidden" variables in the form that posts to the final page.  Be sure you do this within the <form> tags.

<input id="subtotal" name="subtotal" type="hidden" value="<?=$subtotal;?>" />


<input id="subtotal" name="subtotal" type="hidden" value="<?php echo $subtotal; ?>" />


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
lennyhepnerAuthor Commented:
sorry for the delay, i have the source code at
Introduction to R

R is considered the predominant language for data scientist and statisticians. Learn how to use R for your own data science projects.

It´s pretty hard for ya to just trow a problem with this complexity and just expect any answer (that is not the source code page, you have to create a phps page or put a <pre> I think between the start and the end of your code </pre>).... but I will help you with the logic that is the first step...

You have to post to the same page and do a error check....

then once you have that working do a...

//or if(!$_POST['navy']){     whatever works best...
if ($_POST['navy']){          
$navyvalue = '10';
$totalvalue = '10';
that is the source code, you just have to do view source.. copy this to IE: view-source:

This form seems to be working now. Do you still need help?
My solution provided the proper method on how to print out any $_POST vars after the form submission.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.