|
< Earlier Kibitzing · PAGE 12 OF 12 ·
Later Kibitzing > |
Sep-01-09
 |
| WannaBe: See if this tutorial is helpful...
http://www.tutorialspoint.com/perl/... |
 |
Sep-01-09
 |
| ganstaman: <WannaBe> Eh, it's just disheartening. I went to the section <Passing Radio Button Data to CGI Program> and copied the code onto the server. It doesn't work for me (same problem as I was having before). I guess that could be expected given that it has the same 'read' line for getting the post data. So I'm wondering now if this is actually a problem with the code instead of a problem with the website/server stuff in some way. But I don't know what sort of problem that could be. |
 |
Sep-01-09
 |
| WannaBe: <ganstaman> It shouldn't be that aggrevating... =) Do it in steps....
From what I gathered, you are using 2 .pl files, and the second one is the one taking care of the data... 1) Comment out every line, or save/rename the existing files in a different place. 2) Start fresh, only copy the section of code that read in the value, and only have the second file print out that value. <NOTHING ELSE>!!! 3) Make sure you can get the value that you 'think' you are getting from the first file to the second file. Display that value. 4) Then try to split them up print out the values. <NOTHING ELSE, LEAVE THE <SPLIT> CODE OUT>!!! 5) And do what you need do. |
 |
Sep-01-09
 |
| WannaBe: <ganstaman> Why radio? You are expecting a string as input right? You are then splitting it? |
 |
Sep-01-09
 |
| ganstaman: Ok, so I'm not even splitting it anymore. Just reading in the $data variable and printing it out. If I use GET, then $data = $ENV<'QUERY_STRING'> (where <> is really curly brackets) and that works out fine ($data is "asdf=2"). If I use POST and $data = read(STDIN, $data, $ENV<'CONTENT_LENGTH'>) then $data is an empty variable, and CONTENT_LENGTH is 6. I just can't use GET for the actual webpage because there's too much data to fit into the url (about 340 radio button's worth of info). So maybe it would seem that the data isn't being sent to STDIN. But then where is it? What other options do I have? To google I go...! |
 |
Sep-01-09
 |
| ganstaman: <WannaBe: <ganstaman> Why radio? You are expecting a string as input right? You are then splitting it?> The first html page is a bunch of radio buttons to select yes or no to a bunch of questions. That is then being sent to the second page where the perl code should be able to read it (so, for example, radio button named "first_stu4526" has the value of "1", so the string being read would contain ...&first_stu4526=1&...). |
 |
Sep-01-09
 |
| ganstaman: Some related entertainment: http://xkcd.com/519/ |
 |
Sep-01-09
 |
| WannaBe: Hmmmm... Using post, the CONTENT_LENGTH is correct, asdf=2 is length of 6... but why is it not showing up?? =( |
 |
Sep-03-09
 |
| OhioChessFan: <Anyway, your suggestion of $pairs causes the thing to crash. > You get what you pay for! |
 |
Sep-07-09
 |
| WannaBe: <ganstaman> You were able to collect all the info with <GET> instead of <POST> ?? |
 |
Sep-07-09
 |
| ganstaman: <WannaBe: <ganstaman> You were able to collect all the info with <GET> instead of <POST> ??> Yes, GET works great. Though I did have to cut down on the amount of data I wanted to send at once (apparently, I think I saw that URLs have length limits, and I wanted to send about 340 sets of ...&abcdefg=y&...). |
 |
Sep-07-09
 |
| WannaBe: Let me know if you ever solve why POST doesn't work... Nice info to have and hold in my little brain for future references. =) |
 |
Sep-16-09
 |
| Open Defence: Hi, your time is down to about 2 hours in our gameknot game!! |
 |
Sep-17-09
 |
| Open Defence: great!, for a moment I thought you might miss move time!! |
 |
Sep-24-09
 |
| Open Defence: hi you are probably aware, but I thought I would remind you anyway, your time is down to 16 hours in our gameknot game.. |
 |
Sep-25-09
 |
| OhioChessFan: Be sure to stop by my forum for the Pearl Spring Moves Prediction Conteset. Pairings to be announced Sunday? OhioChessFan chessforum |
 |
| Oct-02-09 |
| chessmoron: <ganstaman> Are you familiar with html? http://processing.org . Send you an e-mail, hope you have free time helping me. |
 |
Nov-04-09
 |
| OhioChessFan: Be sure to check out my forum for the Tal Memorial Moves Prediction Contest starting tomorrow. Click on Elvis for details. |
 |
| Dec-24-09 |
| chessmoron: <ganstaman> Season's Greeting. Thanks for everything that made my contest a success. |
 |
Dec-25-09
 |
| Open Defence: Merry Christmas!!! |
 |
Dec-25-09
 |
| chancho: Merry Christmas ganstah! |
 |
Jan-10-10
 |
| ganstaman: <chessmoron>, <Open Defence>, and <chancho>: sorry for the long delay. I always forget to check my forum for messages, and it was worse over my winter break as I only had my blackberry for checking this site, and then scrolling down the forum would have taken too long. But thanks for the well wishes, hope all went well for you guys over the holidays. I just hope you guys read this, but I don't want to otherwise post this same message in 3 different places. |
 |
May-04-10
 |
| Open Defence: thanks for 2 very enjoyable tactical games. No doubt I am pleased to end up on the winning side but I found the tactics very interesting, very different to the games I normally play at Gameknot. Winning this tournament ahead of Wagenaar and Switching was a real feat, one I am very proud of. I am planning a break from chess so it might be some time till we play again. Good luck in your studies and other endeavours! |
 |
Jun-06-10
 |
| ganstaman: <WannaBe: Let me know if you ever solve why POST doesn't work... Nice info to have and hold in my little brain for future references. =)> To the curious, the problem was solved. Here's a thread I started on another forum. At the end (at least the end as of my writing this), I let everyone know what solution worked: http://forumserver.twoplustwo.com/4... |
 |
Jun-07-10
 |
| WannaBe: thanks for the update, I read all the posts, and most of the codes, only if I can comprehend 1/2 of the codes without having to trying them out! Long live Java, death to scripting languages! =) |
 |
 |
|
< Earlier Kibitzing · PAGE 12 OF 12 ·
Later Kibitzing > |