in reply to CGI $query->save does not save data in first invocation of script

Sorry, I forgot you might need to look at the template as well. Note that I am using the post method on the form.
<form method="post"> <table width='100%' border="1" cellspacing='2'> <tr> <th colspan='2'>&nbsp;</th> <th class=nwright>Sun</th> <th class=aright>Mon</th> <th class=aright>Tue</th> <th class=aright>Wed</th> <th class=aright>Thu</th> <th class=aright>Fri</th> <th class=nwright>Sat</th> <th class=aright>Total</th> </tr> <TMPL_LOOP ROWS> <tr> <td><TMPL_VAR NAME=Client></td> <td><TMPL_VAR NAME=Job></td> <td class=nwright><TMPL_VAR NAME=Sun></td> <td class=aright><TMPL_VAR NAME=Mon></td> <td class=aright><TMPL_VAR NAME=Tue></td> <td class=aright><TMPL_VAR NAME=Wed></td> <td class=aright><TMPL_VAR NAME=Thu></td> <td class=aright><TMPL_VAR NAME=Fri></td> <td class=nwright><TMPL_VAR NAME=Sat></td> <td class=aright><TMPL_VAR NAME=Total></td> </tr> </TMPL_LOOP> </table> <table width='100%'> <tr> <td class=aleft><input type="submit" class=save name='Save' value= +"Save times"></td> <td class=acentre><input type="submit" class=submit name='Submit' +value="Submit times"></td> <td class=aright><input type="submit" name='Cancel' value='Cancel +all changes'></td> </tr> </table> </form>
  • Comment on Re: CGI $query->save does not save data in first invocation of script
  • Download Code