Hey,
Can you please show me the code line where you post the selected option to
google server? I really don't understand how a selected option is posted.

Thanks for help.
On Jul 26, 2011 6:47 PM, "Thomas Bennett" <[email protected]> wrote:
> Below is what I use in form, a 24 hour time format. The way I use it
> is to put the form results in a local database first and then a cron
> job runs a python script every 15 minutes to update a google calendar
> that displays room booking. The script updates a boolean field in the
> database to indicate that the google calendar received the event
> because sometimes the google calendar is not always accessible. The
> script sets up the correct time format to upload with the event to
> google for example - 2011-07-26T15:30-05:00 . The -05:00 is Eastern
> time zone. The example date time would be 07/26/2011 at 3:30pm
> eastern time. This is using the gdata api, sometimes I forget which
> list I'm posting to, but time format is still based on what the goggle
> calendar will accept.
>
> Thomas
>
> <tr>
> <td><div align="right"><span class="required">*</span>
> Beginning time:</div></td>
> <td><label for="start_time"></label>
> <select name="start_time" size="1" id="start_time" tabindex="10">
> <option value="8:00">8:00 am</option>
> <option value="8:30">8:30 am</option>
> <option value="9:00">9:00 am</option>
> <option value="9:30">9:30 am</option>
> <option value="10:00">10:00 am</option>
> <option value="10:30">10:30 am</option>
> <option value="11:00">11:00 am</option>
> <option value="11:30">11:30 am</option>
> <option value="12:00">12:00 pm</option>
> <option value="12:30">12:30 pm</option>
> <option value="13:00" selected="selected">1:00 pm</option>
> <option value="13:30">1:30 pm</option>
> <option value="14:00">2:00 pm</option>
> <option value="14:30">2:30 pm</option>
> <option value="15:00">3:00 pm</option>
> <option value="15:30">3:30 pm</option>
> <option value="16:00">4:00 pm</option>
> <option value="16:30">4:30 pm</option>
> <option value="17:00">5:00 pm</option>
> <option value="17:30">5:30 pm</option>
> <option value="18:00">6:00 pm</option>
> <option value="18:30">6:30 pm</option>
> <option value="19:00">7:00 pm</option>
> <option value="19:30">7:30 pm</option>
> <option value="20:00">8:00 pm</option>
> <option value="20:30">8:30 pm</option>
> <option value="21:00">9:00 pm</option>
> <option value="21:30">9:30 pm</option>
> <option value="22:00">10:00 pm</option>
> </select>
> Pick a time (am or pm)</td>
> </tr>
>
> On Mon, Jul 25, 2011 at 5:50 PM, Mr. Malhotra
> <[email protected]> wrote:
>> Hello,
>> Instead of letting the user enter a time of their choice, I would like to
>> provide them with a dropdown list of the timings they can choose from.
I'm
>> not really sure how to make that switch. Here's what I've gotten so far:
>>     <form method="post" action="
>>      <?php echo htmlentities($_SERVER['PHP_SELF']); ?>">
>>       Event title: <br/>
>>       <input name="title" type="text" size="15" /><p/>
>>       Start date (dd/mm/yyyy): <br/>
>>       <input name="sdate_dd" type="text" size="2" />
>>       <input name="sdate_mm" type="text" size="2" />
>>       <input name="sdate_yy" type="text" size="4" /><p/>
>>       Start time (hh:mm): <br/>
>>       <input name="sdate_hh" type="text" size="2" />
>>       <input name="sdate_ii" type="text" size="2" /><br/>
>>       <select id='sstime'>
>>       <option>11:30</option>
>>         <option>11:45</option>
>>         <option>12:00</option>
>>         <option>18:00</option>
>>        </select> <br/>
>>       <input name="submit" type="submit" value="Save" />
>>     </form>
>> Here I started to put in some options. And here's where it's suppose to
get
>> posted:
>>       $start = date(DATE_ATOM, mktime($_POST['sdate_hh'],
>> $_POST['sdate_ii'],
>>        0, $_POST['sdate_mm'], $_POST['sdate_dd'], $_POST['sdate_yy']));
>> please help.
>> Thank you.
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Google Calendar Data API" group.
>> To post to this group, send email to
>> [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://code.google.com/apis/calendar/community/forum.html
>>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Google Calendar Data API" group.
> To post to this group, send email to
> [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://code.google.com/apis/calendar/community/forum.html

-- 
You received this message because you are subscribed to the Google
Groups "Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://code.google.com/apis/calendar/community/forum.html

Reply via email to