Thanks to FF I get the following:
user_name=2&clin_id=1&charge_ids=1&project_names=3&task_names=&add_task=Star+Trek&subtask_names=&start_date=10%2F19%2F2006&end_date=&total_hours=.25&rm=taskform
In my code I take the "add_task" above and put it in a variable like so:
my $new_task_name = $results->valid('add_task');
That variable should be "Star Trek"...
I then want to insert that into the database:
if ($new_task_name) {
$sth1->$self->dbh->prepare("
INSERT INTO task_names VALUES('',?)
");
$sth1->bind_param(1, $new_task_name);
$sth1->execute();
}
I also tried "if (defined $new_task_name)" and "if ($new_task_name ne
'')" in the above code.
I then get:
Error executing run mode 'taskform': Can't call method
"OTrakker=HASH(0x197d200)" on an undefined value at lib//OTrakker.pm
line 142, <CONFIG> line 4.
at D:/Projects/www/DEV/otrakker/index.cgi line 14
Line 142 is that code above.
Any suggestions?
Robert
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]