Re: Re: Can someone tell me why this is not working?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>  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

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux