Pavel_Nedved
Junior Member
Posts: 2
Registered: 8/17/2004
Member Is Offline
|
| posted on 8/17/2004 at 12:38 PM |
|
|
Form Processing
Hi,
I was trying to write my own form processor in php. I can't figgure out what the form id's are.
My code in the <head> tags is:
<script language="JavaScript" src="../jscript/calendar.js"></script>
<script language="JavaScript">
var cal1= new calendar();
</script>
and then within the <form> tags later on, it goes:
<script language="JavaScript">cal1.lb_init();</script>
In my PHP program, I tried using:
$month = $_POST['calcal1_month'];
$day = $_POST['calcal1_day'];
$date = "$month" . " " . "$day";
...but aparently that doesn't work. I probably got the names wrong, but I can't for the life of me figgure out what they are called. Plz
help! What are they actually called?
Thank you very much,
Pavel
|
|
|
bonzo
Junior Member
Posts: 3
Registered: 8/16/2004
Location: Cambridge, England
Member Is Offline
|
| posted on 8/17/2004 at 05:08 PM |
|
|
Helped my post as well
Tried a little test with your code Pavel and used
[php]
$test = $_POST['input1'];
echo "<br>test = ",$test;
[/php]
The output was : test = 01-01-2004 You could then use php "String thingys" to pick out the day month & day.
Anthony
|
|
|