> [PHP] Re: Can someone tell me why this is not working?
> 
> > The center echo does not show.  It will show if I replace $newmort 
with 
> > anything else.  I have copied the first "if" statement,pasted it in 
the 
> > second position, and it works fine.  Once I change the var to 
$newmort, it 
> > will not show. The third echo shows fine, it is only if I use newmort. 
 I 
> > have renamed the var from mort1, because I was getting the same thing.
> >
> > $newmort=STRIPSLASHES($_POST['newmort']);
> > $purchprice=STRIPSLASHES($_POST['purchprice']);
> > $howlong=STRIPSLASHES($_POST['howlong']);
> >
> > if ($purchprice)  {
> > echo "Purchase Price:$ $purchprice<br />";
> > }
> > if ($newmort)  {
> > echo "Mortgage Amount:$ $newmort<br />";
> > }
> > if ($howlong) {
> > echo "How Long has seller owned property: $howlong<br /><br />";

Echo out the value of $newmort just above the "if" statement. If it is 
zero or blank, the "if" will evaluate to false.

Is there a second form field named "newmort" lower on the page? If so, it 
will be the value of $_POST['newmort'] that you receive in the post.

Kirk

Reply via email to