FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » display two values on page
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: display two values on page [message #181131 is a reply to message #181130] Thu, 18 April 2013 10:01 Go to previous messageGo to previous message
Tim Streater is currently offline  Tim Streater
Messages: 328
Registered: September 2010
Karma:
Senior Member
In article <e154c2d7-ccdf-4058-81d5-cbfbfec20264(at)googlegroups(dot)com>,
newbie php <s(dot)hoitinga(at)gmail(dot)com> wrote:

> <html>
> <head>Cost calculated</head>
> <body>

1) You probably mean:
<head>
<title >Cost calculated</title>
</head>

> <?php
> $p=$_POST[price];
> $n=$_POST[number];

2) For forward compatibility, better put:
$p=$_POST['price'];
$n=$_POST['number'];

> $kosten = $p * $n;
>
> echo $a "<br>"
> echo $p "<br>"

3) You really *must* put:
echo $a . "<br>"
echo $p . "<br>"

--
Tim

"That excessive bail ought not to be required, nor excessive fines imposed,
nor cruel and unusual punishments inflicted" -- Bill of Rights 1689
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Anyone uses vTiger's webservice? I need help with webservice's response
Next Topic: Help with searching arrays of objects
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 15:49:29 GMT 2024

Total time taken to generate the page: 0.06604 seconds