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 |