Entrez une date dans un input
Posté : 01 nov. 2010, 17:54
Hello,
Je débute en PHP et je voudrais insérer la date du jour dans un input dont l'ID est input_Date. Pour afficher la date via echo pas de souci mais comment l'insérer dans un input???? Voici mon code :
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Test </title>
<?php
$today_input = date("d/m/Y");
?>
</head>
<body>
<form>
<table cellspacing="5" cellpadding="5" border="0" width="30%">
<tr>
<td width="25%"> Date de facturation : </td>
<td align="center" width="10%">
<input type="text" maxLength="10" size="10" id="input_Date"/>
</td>
</tr>
</table>
</form>
</body>
</html>
Merci pour l'aide
Je débute en PHP et je voudrais insérer la date du jour dans un input dont l'ID est input_Date. Pour afficher la date via echo pas de souci mais comment l'insérer dans un input???? Voici mon code :
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Test </title>
<?php
$today_input = date("d/m/Y");
?>
</head>
<body>
<form>
<table cellspacing="5" cellpadding="5" border="0" width="30%">
<tr>
<td width="25%"> Date de facturation : </td>
<td align="center" width="10%">
<input type="text" maxLength="10" size="10" id="input_Date"/>
</td>
</tr>
</table>
</form>
</body>
</html>
Merci pour l'aide