CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate: Re: [FishMonger] Verifying radio buttons: Edit Log



darkhider
Novice

Dec 12, 2009, 1:35 PM


Views: 4850
Re: [FishMonger] Verifying radio buttons

Sorry Monger, it was my fault. I had the form action to another script. After changing it, at least clicking SendSurvey does something.

I have a question. When im sending cookie, do I need this line?
print "Content-type:text/html\n\n";

This is what I should only have, right?

Code
sub sendlogincookie 
{
# Print HTTP header including cookie
print "Set-Cookie: uid=$row[0]\n";
}



And also, I don't think the verifysurvey is still working.
When I click SendSurvey while there are no answers selected, the message should be displayed saying "Please select an answer." Instead, it just shows the survey page again.

Mysql table for answers looks like this using "desc answers":

Code
+--------+--------------+------+-----+---------+----------------+ 
| Field | Type | Null | Key | Default | Extra |
+--------+--------------+------+-----+---------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| UserID | varchar(50) | NO | | | |
| answer | varchar(500) | NO | | | |
+--------+--------------+------+-----+---------+----------------+



(This post was edited by darkhider on Dec 12, 2009, 1:46 PM)


Edit Log:
Post edited by darkhider (Novice) on Dec 12, 2009, 1:41 PM
Post edited by darkhider (Novice) on Dec 12, 2009, 1:42 PM
Post edited by darkhider (Novice) on Dec 12, 2009, 1:46 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives