Hi all! This is the first time I'm posted here, but I've been learning lots and lots just as a lurker, so thanks for that. ๐
I'm working off some calendar functions I found in the snippet library to make a calendar for my blog site. When someone clicks "My calendar" calendar.php will show a calendar of the current month with linkable dates and such (haven't gotten that far yet ๐. At the bottom of the calendar there will be two drop-down boxes for the user to select a different calendar. Then calendar.php will use those variables to create a new calendar. The problem is that the form drop-down boxes aren't passing the proper variables to back to the script. The first time oe selects a new month, no variables are passed at all; subsequent times, variables are passed but they seem to be randomly selected (ie they don't match what the user selected).
The page is <www.dalqe.com/calendar.php> and the code is below. Thanks for any advice you can give.
<?
include("header.php");
?>
<table border=0 cellpadding=0 cellspacing=0>
<tr>
<td width=20% valign=top>
<div class=sidebar>
<?
include("leftsidebar.php");
?>
</div>
</td>
<td width=15>
</td>
<td valign=top>
<div class=genericmiddlehead style="margin-bottom: 3px">
Contact Me
</div>
<div class=genericmiddlesubhead>
Via Email
</div>
<div class=genericmiddlecontent style="margin-bottom: 3px">
Click <a href="mailto:becky@dalqe.com">here</a> to send me an email. Your message will automatically be forwarded to my regular @.com inbox.
</div>
<div class=genericmiddlesubhead>
Via SMS
</div>
<div class=genericmiddlecontent style="margin-bottom: 3px">
SMS stands for "short message service." To send a text message to my cell phone, fill out the following form. SMS is totally free and guaranteed to make my day!
<P>
<FORM method="post" action="sendsms.php">
Your name:<br>
<INPUT name="name" type="text" size="35"><br><br>
Message:<BR>
<INPUT type="radio" name="msg" value="Wanna hang out?"> Wanna hang out?<BR>
<INPUT type="radio" name="msg" value="Just saying hi!"> Just saying hi!<BR>
<INPUT type="radio" name="msg" value="I think you're cute ๐"> I think you're cute ๐<BR>
<INPUT type="radio" name="msg" value="Very cool website."> Very cool website.<BR>
<INPUT type="radio" name="msg" value="custom"> Custom message:<BR><input type=text name="own" size="35"><BR><BR>
If you want a reply, where should I send it?<BR>
<input type="radio" name="back" value="1"> Call me @ <input type=text name=call size="30"><BR>
<input type="radio" name="back" value="2"> Email me @ <input type=text name=em size="30"><BR>
<input type="radio" name="back" value="3"> SMS me @ <input type=text name=sms size="30"><BR>
<input type="radio" name="back" value="none"> No reply needed!<BR><BR>
<INPUT type="submit" value="Send SMS">  <INPUT type=reset value="Reset Form">
</FORM>
</div>
</td>
</td>
<td width=15>
</td>
<td valign="top" width=20% class=sidebar>
<? include("archivesidebar.php"); ?>
</td>
</tr>
</table>
<?
include("footer.php");
?>