php-general Digest 18 Dec 2009 08:34:31 -0000 Issue 6494
Topics (messages 300576 through 300582):
Re: Fixe Point Decimal Data type
300576 by: LinuxManMikeC
Re: Open source project management tool - PHP
300577 by: Robert Cummings
300582 by: Gaurav Kumar
$_POST is empty , but were are the variables posted??
300578 by: gato chlr
300579 by: Steve
300580 by: gato chlr
300581 by: Ashley Sheridan
Administrivia:
To subscribe to the digest, e-mail:
[email protected]
To unsubscribe from the digest, e-mail:
[email protected]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
On Thu, Dec 17, 2009 at 7:21 AM, Raymond Irving <[email protected]> wrote:
> Hello,
>
> Is there a way to represent numeric values as fixed point decimals in PHP? If
> not, why was this datatype not added?
>
> I think is very important to have fixed point decimals when working with
> money values. This would make it much easy than having to use the BCMath
> functions.
>
> If PHP had support for operator overloading then we could have easily
> implemented this datatype as a class:
>
> $a = new FixPoint(34.56, 2);
> $b = new FixPoint(34.55, 2);
>
> $c = $a-$b;
> echo ($c);
>
> $c+= 3;
> echo $c;
A lack of operator overloading wouldn't stop me if I really needed
such a datatype. Besides, I'd be willing to bet a class (or several)
have already been made.
There is also a problem with your example usage of FixPoint. By
initializing the FixPoint with a float you are still at risk for
rounding errors. It would be better to initialize a FixPoint from
integers or a string if accuracy is truly paramount.
--- End Message ---
--- Begin Message ---
Angelo Zanetti wrote:
Hi guys
I would like to know what open source project management tools you use for
your projects.
We are looking at installing one that is PHP based and is easy to use.
We have found:
http://www.projectpier.org/
and
http://trac.edgewall.org/
Has anyone used the above and how did you find them? Also are there any
others you would recommend or not recommend and why?
I use Mantis for most bug tracking needs. However, I've recently rolled
out OpenGoo for a couple of different clients.
http://fengoffice.com/web/community/community_index.php
Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP
--- End Message ---
--- Begin Message ---
OK one more the list http://dotproject.net/
Its a nice one with all project management features. Easy to use. Just
checkout the website.
Gaurav Kumar
blog.oswebstudio.com
On Fri, Dec 18, 2009 at 12:16 AM, Robert Cummings <[email protected]>wrote:
> Angelo Zanetti wrote:
>
>> Hi guys
>> I would like to know what open source project management tools you use for
>> your projects.
>>
>> We are looking at installing one that is PHP based and is easy to use.
>>
>> We have found:
>> http://www.projectpier.org/
>>
>> and
>>
>> http://trac.edgewall.org/
>>
>>
>> Has anyone used the above and how did you find them? Also are there any
>> others you would recommend or not recommend and why?
>>
>
> I use Mantis for most bug tracking needs. However, I've recently rolled out
> OpenGoo for a couple of different clients.
>
> http://fengoffice.com/web/community/community_index.php
>
> Cheers,
> Rob.
> --
> http://www.interjinn.com
> Application and Templating Framework for PHP
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Hi,
sorry for ask this again, but i really can't solve it.
It must be easy but i can't find the solution
this is my code:
//form.php
<form id='form1' action="mail.php" method="POST" >
name : </td><td><input id="myname" type="text">
<input type="submit" value="enviar">
</form>
//and this is the mail.php
$name = $_POST["myname"];
var_dump($name);
and the result is:
NULL
i'm using php 5, i don'd know what is wrong and i have readed a lot of blogs
and forums, there is a lot of people with this problem , but i have not
found a solution. thanks for the help
--- End Message ---
--- Begin Message ---
On 12/17/2009 1:21 PM, gato chlr wrote:
Hi,
sorry for ask this again, but i really can't solve it.
It must be easy but i can't find the solution
this is my code:
//form.php
<form id='form1' action="mail.php" method="POST">
name :</td><td><input id="myname" type="text">
<input type="submit" value="enviar">
</form>
//and this is the mail.php
$name = $_POST["myname"];
var_dump($name);
and the result is:
NULL
i'm using php 5, i don'd know what is wrong and i have readed a lot of blogs
and forums, there is a lot of people with this problem , but i have not
found a solution. thanks for the help
You need to name your field with name="myname"
//form.php
<form id='form1' action="mail.php" method="POST">
name :</td><td><input id="myname" type="text" name="myname">
<input type="submit" value="enviar">
</form>
--- End Message ---
--- Begin Message ---
THANKS A LOT!!! to every one!!! . it works.
2009/12/17 Joseph Thayne <[email protected]>
> Give your input a name. (i.e. name="myname")
>
> -----Original Message-----
> From: gato chlr [mailto:[email protected]]
> Sent: Thursday, December 17, 2009 3:22 PM
> To: [email protected]
> Subject: [PHP] $_POST is empty , but were are the variables posted??
>
> Hi,
> sorry for ask this again, but i really can't solve it.
> It must be easy but i can't find the solution
>
> this is my code:
> //form.php
> <form id='form1' action="mail.php" method="POST" >
> name : </td><td><input id="myname" type="text">
> <input type="submit" value="enviar">
> </form>
>
> //and this is the mail.php
> $name = $_POST["myname"];
> var_dump($name);
>
> and the result is:
> NULL
>
> i'm using php 5, i don'd know what is wrong and i have readed a lot of
> blogs
> and forums, there is a lot of people with this problem , but i have not
> found a solution. thanks for the help
>
>
--- End Message ---
--- Begin Message ---
On Thu, 2009-12-17 at 13:30 -0800, Steve wrote:
> On 12/17/2009 1:21 PM, gato chlr wrote:
> > Hi,
> > sorry for ask this again, but i really can't solve it.
> > It must be easy but i can't find the solution
> >
> > this is my code:
> > //form.php
> > <form id='form1' action="mail.php" method="POST">
> > name :</td><td><input id="myname" type="text">
> > <input type="submit" value="enviar">
> > </form>
> >
> > //and this is the mail.php
> > $name = $_POST["myname"];
> > var_dump($name);
> >
> > and the result is:
> > NULL
> >
> > i'm using php 5, i don'd know what is wrong and i have readed a lot of blogs
> > and forums, there is a lot of people with this problem , but i have not
> > found a solution. thanks for the help
> >
> >
> You need to name your field with name="myname"
>
> //form.php
> <form id='form1' action="mail.php" method="POST">
> name :</td><td><input id="myname" type="text" name="myname">
> <input type="submit" value="enviar">
> </form>
>
>
The id attribute is used to attach the element to a <label> or to
interact with it with CSS or Javascript.
Thanks,
Ash
http://www.ashleysheridan.co.uk
--- End Message ---