Forum archive 2000-2006

ymarkov - htmlTOP syntax?

ymarkov - htmlTOP syntax?

by Arnold Pizer -
Number of replies: 0
inactiveTopichtmlTOP syntax? topic started 9/26/2001; 4:25:24 PM
last post 9/27/2001; 11:15:05 AM
userymarkov - htmlTOP syntax?  blueArrow
9/26/2001; 4:25:24 PM (reads: 892, responses: 1)
I am trying to customize very slightly the logout page. Namely I would like to add two links, Back to the course page link and close window link. I seem to run into trouble, while trying to use a simple 'print' command, so I was wondering what is the correct way to put a link between htmlTOP() command and the end_html command. I did not find anything in the man pages, but they are not working well for me today.

Thank you,

Yavor

<| Post or View Comments |>


userArnold K. Pizer - Re: htmlTOP syntax?  blueArrow
9/27/2001; 11:15:05 AM (reads: 1112, responses: 0)
Edit the short script logout.pl. The print command in that script is printing a list of strings, so you do not need another print command. Most likely that is the source of your error. Here is an example which works (to be consistent, it would be better to use the CGI.pm commands, but I don't know them off the top of my head and I don't want to guess).

 

print &htmlTOP('WeBWorK Logout Form', '' , ''),
hr,
h1('User', param('user'), ' is logged out.'),
"You may now exit your web browser or surf on to other sites.",
"

<A HREF='http://www.math.rochester.edu/courses/current/MTH161/'>
General MTH 161 Information</A> (Office
Hours, Syllabus, Recitations, Schedule, Announcements etc.)",
end_html;

<| Post or View Comments |>