Budreaux
04-05-2010, 08:08 PM
I have the following code snippet for a custom 404 error page
print start_html (-title=>"Page Error",
-style=>{-src=>'../test/css/page.css'}),
h1('Error - Page Not Found!'),
'We're sorry, but the page you were looking for has either been changed, ',
'moved, or has been deleted. Please return to our ',
a({href=>'http://www.homepage.us'},'homepage'),' to locate the proper page. ',
'You may also fill out the form below to help us better understand why you ',
'arrived at this error page.',br,br,'If you arrived at this page via a ',
'"bookmark", please delete the link as it no longer works.',
br,hr,br,
end_html;
print start_form,
'Email address <optional>: ',br,
textfield('email','',35),
br,br,
############ problem code here
'Page you were trying to find',br,
textfield('page',$last_line,50),
br,br,
'Additional information:',br,
textarea('comments','',4,40),
br,br,
submit,
end_form;
As is, the error page url stored in $last_line shows up in the text box fine. If I change it to display the url inline with text as so
'You tried to access $last_line.',
it displays "You tried to access $last_line." I prefer to display with inline text rather than a text box. I know I am overlooking something simple here, I just can't put my finger on it. Any suggestions?
print start_html (-title=>"Page Error",
-style=>{-src=>'../test/css/page.css'}),
h1('Error - Page Not Found!'),
'We're sorry, but the page you were looking for has either been changed, ',
'moved, or has been deleted. Please return to our ',
a({href=>'http://www.homepage.us'},'homepage'),' to locate the proper page. ',
'You may also fill out the form below to help us better understand why you ',
'arrived at this error page.',br,br,'If you arrived at this page via a ',
'"bookmark", please delete the link as it no longer works.',
br,hr,br,
end_html;
print start_form,
'Email address <optional>: ',br,
textfield('email','',35),
br,br,
############ problem code here
'Page you were trying to find',br,
textfield('page',$last_line,50),
br,br,
'Additional information:',br,
textarea('comments','',4,40),
br,br,
submit,
end_form;
As is, the error page url stored in $last_line shows up in the text box fine. If I change it to display the url inline with text as so
'You tried to access $last_line.',
it displays "You tried to access $last_line." I prefer to display with inline text rather than a text box. I know I am overlooking something simple here, I just can't put my finger on it. Any suggestions?