Hello all,
I'm really new to perl so I hope I can explain what's going here well enough for someone to help me.
I working an internship where I'm developing a Perl/Mason webapp. So far it has a couple of webforms. The first, is a sort of request form where the user will have to input information about a certain type of request they are making. After the data is entered, and the form submitted, the info is processed to the DB and an email is sent. Inside the email is a link back to the form, where "THE REVIEWER" can review the request and then click a button to submit a formal review for the request. This takes them to the second, review form, where they will input the info about the review. This is where i'm having problems. I'm using the url to pass the id of the request, and a sort of boolean to the review form:
//
And I'm using the DATAumper to look at what is in $ARGS:
$VAR1 = 'request_id';
$VAR2 = '82';
$VAR3 = 'new';
$VAR4 = 'true';
$VAR5 = 'review_id';
$VAR6 = '27';
And at this point everything is fine. But after I input the data on the review form and try to submit it, I can't get my if statement to pass because it's not reading the $ARGS right. The 'new' key has 2 values:
$VAR19 = 'review_date';
$VAR20 = '2009-09-03';
$VAR21 = 'new';
$VAR22 = [
'false',
'true'
];
$VAR23 = 'request_id';
$VAR24 = '82';
$VAR25 = 'request_date';
$VAR26 = '2009-08-28';
I'm guessing that the reason I'm getting the 2 values is because it's reading one the url string, and the other from my little javascript function:
//function SubmitReview()
//{
//document.getElementById('new').value = 'false';
//document.getElementById('submit').value = 'true';
//}
(i commented it out here cause i'm not sure how it render in the post. don't wanna cause any problems.)
I've tried using the $ENV hash to change the query string, removing/deleting the key before I change the value, clearing out $ARGS before the change and other thing, but so far nothing has worked.
I guess I'm looking for some ideas on how to fix this problem, or alternative methods to accomplishing what I want.
Again, I'm a newbie so keep that in mind if you reply.
Thanks.
Rk.
I'm really new to perl so I hope I can explain what's going here well enough for someone to help me.
I working an internship where I'm developing a Perl/Mason webapp. So far it has a couple of webforms. The first, is a sort of request form where the user will have to input information about a certain type of request they are making. After the data is entered, and the form submitted, the info is processed to the DB and an email is sent. Inside the email is a link back to the form, where "THE REVIEWER" can review the request and then click a button to submit a formal review for the request. This takes them to the second, review form, where they will input the info about the review. This is where i'm having problems. I'm using the url to pass the id of the request, and a sort of boolean to the review form:
//
And I'm using the DATAumper to look at what is in $ARGS:
$VAR1 = 'request_id';
$VAR2 = '82';
$VAR3 = 'new';
$VAR4 = 'true';
$VAR5 = 'review_id';
$VAR6 = '27';
And at this point everything is fine. But after I input the data on the review form and try to submit it, I can't get my if statement to pass because it's not reading the $ARGS right. The 'new' key has 2 values:
$VAR19 = 'review_date';
$VAR20 = '2009-09-03';
$VAR21 = 'new';
$VAR22 = [
'false',
'true'
];
$VAR23 = 'request_id';
$VAR24 = '82';
$VAR25 = 'request_date';
$VAR26 = '2009-08-28';
I'm guessing that the reason I'm getting the 2 values is because it's reading one the url string, and the other from my little javascript function:
//function SubmitReview()
//{
//document.getElementById('new').value = 'false';
//document.getElementById('submit').value = 'true';
//}
(i commented it out here cause i'm not sure how it render in the post. don't wanna cause any problems.)
I've tried using the $ENV hash to change the query string, removing/deleting the key before I change the value, clearing out $ARGS before the change and other thing, but so far nothing has worked.
I guess I'm looking for some ideas on how to fix this problem, or alternative methods to accomplishing what I want.
Again, I'm a newbie so keep that in mind if you reply.
Thanks.
Rk.