You are here: Re: [PHP] combining values « PHP « IT news, forums, messages
Re: [PHP] combining values

Posted by Sascha Kaufmann on 03/01/05 19:44

$birthday = $day.'.'.$month.'.'.$year;

William Stokes wrote:
> Hello,
>
> I need to collect persons birth date from web form. The form is this kind:
> <td>Birthday</td>
> <td>date
> <input type="text" name="day" size="5" maxlength="2">
> month
> <input type="text" name="month" size="5" maxlength="2">
> year
> <input type="text" name="year" size="10" maxlength="4">
> </td>
>
> Then I need to combine these in to a one $variable. Something like this...
>
> $birthday = $day . $month . $year;
>
> How can I add the . (dots) to the date so it would look like for example
> this:
>
> 28.05.1974
>
>
>
> Thanks
>
> -Will
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация