From: Edward S. <lbs...@us...> - 2005-07-19 10:29:32
|
Good morning (or evening for some). I have phpESP set up and working well. But there is something I want to do which I cannot figure out. We have about 5-75 similar web pages which function as subject guides. I plan to provide a link from each of then (using a banner ssi file) to a single survey in phpESP. Ideally, I would like to have the identify of the page they came from included in the survey results, rather than asking them to enter it. So I am trying to figure out some way to incorporate the HTTP_REFERER variable as a default answer for a question. But I have not been able to determine any way to do this within phpESP. Does anyone have any suggestions? Thanks for any help you can provide. -Edward -- Edward F Spodick, Information Technology Manager Hong Kong University of Science & Technology Library lbs...@us... tel:852-2358-6743 fax:852-2358-1043 |
From: Harry M. <hj...@ta...> - 2005-07-20 15:28:15
|
I tried to use the undocumented signup.php script that allows respondents to make their own logins, but was unable to make it work. After correcting the missing paren, it further complained about the 'auto' designation in the realm field. The insert statement was: INSERT INTO respondent (username,password,email,fname,lname,realm) VALUES ('tacg',PASSWORD('baba'),'hj...@ta...','Harry ','Mangalam',auto) and the response was: Request failed, please choose a different username.[ 1054: Unknown column 'auto' in 'field list' ] At this point I don't know what the problem is. 'auto' appears to be the right group, altho it might need to be quoted (?) in some way? Any hints? With this feature, it'll be just about perfect! -- Cheers, Harry Harry J Mangalam - 949 856 2847 (vox; email for fax) - hj...@ta... <<plain text preferred>> |
From: Jim B. <jp...@si...> - 2005-07-20 17:47:11
|
* Harry Mangalam <hj...@ta...> [2005-07-20 11:29]: > I tried to use the undocumented signup.php script that allows respondents to > make their own logins, but was unable to make it work. After correcting the > missing paren, it further complained about the 'auto' designation in the > realm field. > > The insert statement was: > > INSERT INTO respondent (username,password,email,fname,lname,realm) VALUES > ('tacg',PASSWORD('baba'),'hj...@ta...','Harry ','Mangalam',auto) > > and the response was: > > Request failed, please choose a different username.[ 1054: Unknown column > 'auto' in 'field list' ] > > At this point I don't know what the problem is. 'auto' appears to be the > right group, altho it might need to be quoted (?) in some way? > > Any hints? With this feature, it'll be just about perfect! > > -- > Cheers, Harry > Harry J Mangalam - 949 856 2847 (vox; email for fax) - hj...@ta... > <<plain text preferred>> > IIRC, auto is a reserved keyword, so MySQL may be barfing on that. Quoting 'auto' does work. Should give you what you want. I don't use respondents however, so my knowledge ends here. Best Regards, Jim B. |
From: Edward S. <lbs...@us...> - 2005-07-21 03:04:35
|
Well, I have not received any replies, but i wanted to give a status report for the archives - especially since it seems that phpESP uses an invalid naming convention for input tags. 1 - I could not find a way to do this in phpESP. Fine. 2 - I decided to use javascript, have the first question ask the user where they came from and have the javascript autofillin the answer (which the user could always change). Sound workable 3 - Found that phpESP seems to use an invalid naming convention for its input tags. All input fields in the survey begin with numerals. According to http://www.w3.org/TR/html401/types.html#h-6.2 "ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods (".")." As a result, the javascript I tried fails. 4 - I will be trying to modify the code to add an ID to the input tags, just so I can modify and use them for the javascript. Have fun. -Spode At 6:29 PM +0800 7/19/05, Edward Spodick wrote: >Good morning (or evening for some). I have phpESP set up and working well. But there is something I want to do which I cannot figure out. > >We have about 5-75 similar web pages which function as subject guides. I plan to provide a link from each of then (using a banner ssi file) to a single survey in phpESP. Ideally, I would like to have the identify of the page they came from included in the survey results, rather than asking them to enter it. > >So I am trying to figure out some way to incorporate the HTTP_REFERER variable as a default answer for a question. But I have not been able to determine any way to do this within phpESP. Does anyone have any suggestions? > >Thanks for any help you can provide. > >-Edward > >-- >Edward F Spodick, Information Technology Manager >Hong Kong University of Science & Technology Library >lbs...@us... tel:852-2358-6743 fax:852-2358-1043 > > >------------------------------------------------------- >SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >from IBM. Find simple to follow Roadmaps, straightforward articles, >informative Webcasts and more! Get everything you need to get up to >speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click >_______________________________________________ >phpESP-general mailing list >php...@li... >https://lists.sourceforge.net/lists/listinfo/phpesp-general |
From: Matthew G. <gr...@mu...> - 2005-07-21 14:16:14
|
Yup, current ESP is in no way W3C compliant. Versions beyond 1.7.5 hope to fix that. On Thu, 2005-07-21 at 11:04 +0800, Edward Spodick wrote: > Well, I have not received any replies, but i wanted to give a status report for the archives - especially since it seems that phpESP uses an invalid naming convention for input tags. > > 1 - I could not find a way to do this in phpESP. Fine. > > 2 - I decided to use javascript, have the first question ask the user where they came from and have the javascript autofillin the answer (which the user could always change). Sound workable > > 3 - Found that phpESP seems to use an invalid naming convention for its input tags. All input fields in the survey begin with numerals. According to http://www.w3.org/TR/html401/types.html#h-6.2 "ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods (".")." As a result, the javascript I tried fails. > > 4 - I will be trying to modify the code to add an ID to the input tags, just so I can modify and use them for the javascript. > > Have fun. > -Spode > > > At 6:29 PM +0800 7/19/05, Edward Spodick wrote: > >Good morning (or evening for some). I have phpESP set up and working well. But there is something I want to do which I cannot figure out. > > > >We have about 5-75 similar web pages which function as subject guides. I plan to provide a link from each of then (using a banner ssi file) to a single survey in phpESP. Ideally, I would like to have the identify of the page they came from included in the survey results, rather than asking them to enter it. > > > >So I am trying to figure out some way to incorporate the HTTP_REFERER variable as a default answer for a question. But I have not been able to determine any way to do this within phpESP. Does anyone have any suggestions? > > > >Thanks for any help you can provide. > > > >-Edward > > > >-- > >Edward F Spodick, Information Technology Manager > >Hong Kong University of Science & Technology Library > >lbs...@us... tel:852-2358-6743 fax:852-2358-1043 > > > > > >------------------------------------------------------- > >SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > >from IBM. Find simple to follow Roadmaps, straightforward articles, > >informative Webcasts and more! Get everything you need to get up to > >speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > >_______________________________________________ > >phpESP-general mailing list > >php...@li... > >https://lists.sourceforge.net/lists/listinfo/phpesp-general > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > phpESP-general mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/phpesp-general > > -- mcg ------------------------------------- The IT Lab (http://www.itlab.musc.edu) |
From: Harry M. <hj...@ta...> - 2005-07-21 17:24:44
|
Thanks!! It does work with auto single-quoted when I reference it as a standalone web page. I can see where it can be set to create either embed-able html or a standalone web page, (and it generates a standalone web page in either case, but it's not clear how it should be referenced from another page to embed it, or whether it can be added to a survey automatically from the management interface. Sine it's a new feature, am I to assume that it hasn't been made available via the management interface? If so, I guess I'll start to dive into php. hjm On Wednesday 20 July 2005 10:46 am, Jim Brown wrote: > * Harry Mangalam <hj...@ta...> [2005-07-20 11:29]: > > I tried to use the undocumented signup.php script that allows respondents > > to make their own logins, but was unable to make it work. After > > correcting the missing paren, it further complained about the 'auto' > > designation in the realm field. > > > > The insert statement was: > > > > INSERT INTO respondent (username,password,email,fname,lname,realm) VALUES > > ('tacg',PASSWORD('baba'),'hj...@ta...','Harry ','Mangalam',auto) > > > > and the response was: > > > > Request failed, please choose a different username.[ 1054: Unknown column > > 'auto' in 'field list' ] > > > > At this point I don't know what the problem is. 'auto' appears to be the > > right group, altho it might need to be quoted (?) in some way? > > > > Any hints? With this feature, it'll be just about perfect! > > > > -- > > Cheers, Harry > > Harry J Mangalam - 949 856 2847 (vox; email for fax) - hj...@ta... > > <<plain text preferred>> > > IIRC, auto is a reserved keyword, so MySQL may be barfing on that. > > Quoting 'auto' does work. Should give you what you want. > > I don't use respondents however, so my knowledge ends here. > > Best Regards, > Jim B. > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > phpESP-general mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/phpesp-general -- Cheers, Harry Harry J Mangalam - 949 856 2847 (vox; email for fax) - hj...@ta... <<plain text preferred>> |
From: Matthew G. <gr...@mu...> - 2005-07-21 18:02:44
|
No management interface integration is done. Any improvements are welcome. On Thu, 2005-07-21 at 09:37 -0700, Harry Mangalam wrote: > Thanks!! It does work with auto single-quoted when I reference it as a > standalone web page. I can see where it can be set to create either > embed-able html or a standalone web page, (and it generates a standalone web > page in either case, but it's not clear how it should be referenced from > another page to embed it, or whether it can be added to a survey > automatically from the management interface. Sine it's a new feature, am I > to assume that it hasn't been made available via the management interface? > > If so, I guess I'll start to dive into php. > > hjm > > > On Wednesday 20 July 2005 10:46 am, Jim Brown wrote: > > * Harry Mangalam <hj...@ta...> [2005-07-20 11:29]: > > > I tried to use the undocumented signup.php script that allows respondents > > > to make their own logins, but was unable to make it work. After > > > correcting the missing paren, it further complained about the 'auto' > > > designation in the realm field. > > > > > > The insert statement was: > > > > > > INSERT INTO respondent (username,password,email,fname,lname,realm) VALUES > > > ('tacg',PASSWORD('baba'),'hj...@ta...','Harry ','Mangalam',auto) > > > > > > and the response was: > > > > > > Request failed, please choose a different username.[ 1054: Unknown column > > > 'auto' in 'field list' ] > > > > > > At this point I don't know what the problem is. 'auto' appears to be the > > > right group, altho it might need to be quoted (?) in some way? > > > > > > Any hints? With this feature, it'll be just about perfect! > > > > > > -- > > > Cheers, Harry > > > Harry J Mangalam - 949 856 2847 (vox; email for fax) - hj...@ta... > > > <<plain text preferred>> > > > > IIRC, auto is a reserved keyword, so MySQL may be barfing on that. > > > > Quoting 'auto' does work. Should give you what you want. > > > > I don't use respondents however, so my knowledge ends here. > > > > Best Regards, > > Jim B. > > > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > > from IBM. Find simple to follow Roadmaps, straightforward articles, > > informative Webcasts and more! Get everything you need to get up to > > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > > _______________________________________________ > > phpESP-general mailing list > > php...@li... > > https://lists.sourceforge.net/lists/listinfo/phpesp-general > -- mcg ------------------------------------- The IT Lab (http://www.itlab.musc.edu) |
From: Harry M. <hj...@ta...> - 2005-07-21 18:24:19
|
On Thursday 21 July 2005 10:48 am, Matthew Gregg wrote: > No management interface integration is done. Any improvements are > welcome. Heh! I'll certainly push any changes back to you - thanks for all the code and help so far! hjm -- Cheers, Harry Harry J Mangalam - 949 856 2847 (vox; email for fax) - hj...@ta... <<plain text preferred>> |