Link to home
Start Free TrialLog in
Avatar of solunatec
solunatec

asked on

php form with javascript calendar

I have a phpgernerated form that connects to a mysql database: with help from some friend at eexchange I was given a javascript calendar that fits nicely with the form, pops up to easily input the date field on the form: all is great except that I wanted to use the form on my mogul htc hand held: the form looks ok but the calendar script opens without clicking and hogs the top of the browser and you do not see the individual dates only the frame with the headers of the calendar..below the form is normal...would like to know how to go about being able to use the form with the calendar script on my mogul hand held...thanks
<HTML><HEAD><TITLE>My Form - created with phpFormGenerator</TITLE></HEAD>
<BODY>
 
 
 
<iframe width=174 height=189 name="gToday:normal:agenda.js" id="gToday:normal:agenda.js" src="HelloWorld/ipopeng.htm" scrolling="no" frameborder="0" style="visibility:visible; z-index:999; position:absolute; top:-500px; left:-500px;">
</iframe>
 
 
 
<font face='arial' size=2><b>All fields marked with a * are required:<br>
<form enctype='multipart/form-data' action='process.php' method='post' name="demoform">
<table border=1 bordercolor='#000000'><tr><tr>
<table width='50%' border=0>
<tr><td bgcolor='#C0C0C0'> location<font color='#ff0000'>*</font></td>
<td bgcolor='#C0C0C0'>
<input type=text name='location' size=10></td></tr>
<tr><td bgcolor='#CCCCCC'> accountname<font color='#ff0000'>*</font></td>
<td bgcolor='#CCCCCC'>
<input type=text name='accountname' size=10></td></tr>
<tr><td bgcolor='#C0C0C0'> name<font color='#ff0000'>*</font></td>
<td bgcolor='#C0C0C0'>
<select name='name'><option value='Abel Garcia'>Abel Garcia<option value='Janeth Garcia'>Janeth Garcia<option value='Deniz Sanchez'>Deniz Sanchez<option value='Alba Mejia'>Alba Mejia<option value='Roger Caycho'>Roger Caycho<option value='Segundo Vilchez'>Segundo Vilchez<option value='Carlos Portuquez'>Carlos Portuquez<option value='Daniel Calixto'>Daniel Calixto<option value='Edgar Calixto'>Edgar Calixto<option value='Guadalupe Vazquez'>Guadalupe Vazquez<option value='Luis Melgar'>Luis Melgar<option value='Elvis Recines'>Elvis Recines<option value='Tomas Cuadros'>Tomas Cuadros<option value='Carmelo Benito'>Carmelo Benito<option value='Carmelo Zanjuampa'>Carmelo Zanjuampa<option value='Edmundo Mera'>Edmundo Mera<option value='see comments'>see comments</select></td></tr>
<tr><td bgcolor='#CCCCCC'> date<font color='#ff0000'>*</font></td>
<td bgcolor='#CCCCCC'>
<input type=text name='date' size=10><a href="javascript:void(0)" onclick="if(self.gfPop)gfPop.fPopCalendar(document.demoform.date);return false;" ><img class="PopcalTrigger" align="absmiddle" src="HelloWorld/calbtn.gif" width="34" height="22" border="0" alt=""></a></td></tr>
<tr><td bgcolor='#C0C0C0'> wo num<font color='#ff0000'>*</font></td>
<td bgcolor='#C0C0C0'>
<input type=text name='wonum' size=4></td></tr>
<tr><td bgcolor='#CCCCCC'> begint<font color='#ff0000'>*</font></td>
<td bgcolor='#CCCCCC'>
<select name='begint'><option value='12:00'>12:00<option value='12:30'>12:30<option value='1:00'>1:00<option value='1:30'>1:30<option value='2:00'>2:00<option value='2:30'>2:30<option value='3:00'>3:00<option value='3:30'>3:30<option value='4:00'>4:00<option value='4:30'>4:30<option value='5:00'>5:00<option value='5:30'>5:30<option value='6:00'>6:00<option value='6:30'>6:30<option value='7:00'>7:00<option value='7:30'>7:30<option value='8:00'>8:00<option value='8:30'>8:30<option value='9:00'>9:00<option value='9:30'>9:30<option value='10:00'>10:00<option value='10:30'>10:30<option value='11:00'>11:00<option value='11:30'>11:30<option value='12:00'>12:00<option value='12:15'>12:15<option value='1:15'>1:15<option value='2:15'>2:15<option value='3:15'>3:15<option value='4:15'>4:15<option value='5:15'>5:15<option value='6:15'>6:15<option value='7:15'>7:15<option value='8:15'>8:15<option value='9:15'>9:15<option value='10:15'>10:15<option value='11:15'>11:15<option value='12:45'>12:45<option value='1:45'>1:45<option value='2:45'>2:45<option value='3:45'>3:45<option value='4:45'>4:45<option value='5:45'>5:45<option value='6:45'>6:45<option value='7:45'>7:45<option value='8:45'>8:45<option value='9:45'>9:45<option value='10:45'>10:45</select></td></tr>
<tr><td bgcolor='#C0C0C0'> endt<font color='#ff0000'>*</font></td>
<td bgcolor='#C0C0C0'>
<select name='endt'><option value='12:00'>12:00<option value='1:00'>1:00<option value='2:00'>2:00<option value='3:00'>3:00<option value='4:00'>4:00<option value='5:00'>5:00<option value='6:00'>6:00<option value='7:00'>7:00<option value='8:00'>8:00<option value='9:00'>9:00<option value='10:00'>10:00<option value='11:00'>11:00<option value='12:30'>12:30<option value='1:30'>1:30<option value='2:30'>2:30<option value='3:30'>3:30<option value='4:30'>4:30<option value='5:30'>5:30<option value='6:30'>6:30<option value='7:30'>7:30<option value='8:30'>8:30<option value='9:30'>9:30<option value='10:30'>10:30<option value='11:30'>11:30<option value='12:15'>12:15<option value='1:15'>1:15<option value='2:15'>2:15<option value='3:15'>3:15<option value='4:15'>4:15<option value='5:15'>5:15<option value='6:15'>6:15<option value='7:15'>7:15<option value='8:15'>8:15<option value='9:15'>9:15<option value='10:15'>10:15<option value='11:15'>11:15<option value='12:45'>12:45<option value='1:45'>1:45<option value='2:45'>2:45<option value='3:45'>3:45<option value='4:45'>4:45<option value='5:45'>5:45<option value='6:45'>6:45<option value='7:45'>7:45<option value='8:45'>8:45<option value='9:45'>9:45<option value='10:45'>10:45<option value='11:45'>11:45</select></td></tr>
<tr><td bgcolor='#CCCCCC'> travelt<font color='#ff0000'>*</font></td>
<td bgcolor='#CCCCCC'>
<select name='travelt'><option value='.25hr'>.25hr<option value='.5hr'>.5hr<option value='.75hr'>.75hr<option value='1hr'>1hr<option value='1.25hr'>1.25hr<option value='1.5hr'>1.5hr<option value='1.75hr'>1.75hr<option value='2hr'>2hr<option value='2.25hr'>2.25hr<option value='2.5hr'>2.5hr<option value='2.75hr'>2.75hr<option value='see comments'>see comments</select></td></tr>
<tr><td bgcolor='#C0C0C0'> expense items<font color='#ff0000'>*</font></td>
<td bgcolor='#C0C0C0'>
<select name='expenseitems'><option value='10'>10<option value='20'>20<option value='30'>30<option value='40'>40<option value='50'>50<option value='60'>60<option value='70'>70<option value='80 '>80 <option value='90'>90<option value='100'>100</select></td></tr>
<tr><td bgcolor='#CCCCCC'> comments</td>
<td bgcolor='#CCCCCC'>
<input type=text name='comments' size=10></td></tr>
<tr><td bgcolor='#C0C0C0'> comment</td>
<td bgcolor='#C0C0C0'>
<input type=text name='comment' size=10></td></tr>
</table>
</td></tr></table>
<input type='submit' value='Submit Form'> <input type=reset value='Clear Form'></form>
<br><br><br><a href='http://phpformgen.sourceforge.net'><img src='button.jpg' border=0></a>
</BODY></HTML>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of psimation
psimation
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of solunatec
solunatec

ASKER

I guesse you probably do not know of a php pop up caledar to replace the javascript one.