This topic is locked
[SOLVED]

 how do I creare a plain page of just a few words, with a logout button

11/18/2008 9:19:08 AM
PHPRunner General questions
T
thesofa author

I am creating a survey and I need a page with no titles or fields on it, just a few words thanking the user for their time, and then a log out button.

I shall redirect to this after the last page of the survey has been completed.

How do I do this?

J
Jane 11/18/2008

Hi,
I suppose you need to create custom page with one button.

Here is a sample code for the button:

<input type=button class=button value=Logout onclick="java script: window.location.href='login.php?a=logout';">

T
thesofa author 11/18/2008

Where do |I go to make a custom page?

Or do I just use printer page or view page and remove all elements from it?

Sergey Kornilov admin 11/18/2008

I think you can create thankyou.html file in Notepad. As an alternative you can use one of View/Print pages in PHPRunner,

T
thesofa author 11/19/2008

I think you can create thankyou.html file in Notepad. As an alternative you can use one of View/Print pages in PHPRunner,



I have used a view page and redirected to that page from the last data entry edit page, If i have the redirect line from the edit page as

header("Location: v_ans_6_view.php");



all I get is a blank page

When I change the code to read

header("Location: v_ans_6_view.php?editid1=".$_SESSION["id"]);

exit();



I get the page as seen in visual editor, but the logout button does nowt

I have deleted all the elements from the view page, the code from VE is

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML><HEAD><TITLE>Teaching and learning survey</TITLE>

{BEGIN stylefiles_block}<link REL="stylesheet" href="include/style.css" type="text/css"><!--[if IE]><link REL="stylesheet" href="include/styleIE.css" type="text/css"><![endif]-->{END stylefiles_block}{BEGIN style_block}

<STYLE>

#center_block{$id} {width:45%;margin:0 auto;}

#contents_block{$id} {text-align:center;}

#header_block{$id} {white-space:nowrap;height:31px;padding-top:5px;text-align:center;}

#main_block{$id} {padding:10px 0;text-align:center;}

#inmain_block{$id} {margin:0 10px}

#fields_block{$id} {width:100%}

#buttons_block{$id} {padding:7px 5px 2px;white-space:nowrap;}

#required_block{$id} {text-align:left;padding:5px}

#buttons_block{$id} > * {margin:0 2px}

</STYLE>

<!--[if IE]>

<STYLE>

#main_block{$id} {padding:10px 10;}

#inmain_block{$id} {margin:0 0px;width:100%}

</STYLE>

<![endif]-->{END style_block}

<META content="MSHTML 6.00.2900.3354" name=GENERATOR></HEAD>

<BODY>{$header}
{BEGIN body}<DIV>

<TABLE id=center_block align=center>

<TBODY>

<TR>

<TD id=contents_block><B class=xtop><B class="rb1 rb1_top"></B><B

class="rb2 rb2_top"></B><B class="rb3 rb3_top"></B><B

class="rb4 rb4_top"></B></B>

<DIV class=top id="header_block{$id}">Teaching and learning

survey</DIV>

<DIV class=xboxcontentb id="main_block{$id}">

<DIV class=xboxcontentb id="inmain_block{$id}">

<TABLE id="fields_block{$id}" cellSpacing=0 cellPadding=4 border=0>

<TBODY></TBODY></TABLE>

<DIV class=downedit>{BEGIN back_button}<SPAN class=buttonborder></SPAN>{END back_button}&nbsp;</DIV>

<DIV class=downedit>{BEGIN back_button}<SPAN class=buttonborder>Thank

you for completeing the survey, now please log out</SPAN>{END back_button}</DIV>

<DIV class=downedit>{BEGIN back_button}<SPAN class=buttonborder></SPAN>{END back_button}&nbsp;</DIV>

<DIV class=downedit>{BEGIN back_button}<SPAN class=buttonborder></SPAN>{END back_button}&nbsp;</DIV>

<DIV class=downedit>{BEGIN back_button}<SPAN class=buttonborder><INPUT class=button onclick="java script: window.location.href='login.php?a=logout';" type=button value=Logout></SPAN>{END back_button}

&nbsp;</DIV>

<DIV class=downedit>&nbsp;</DIV><B class=xbottom><B class=xb4a></B><B

class=xb3a></B><B class=xb2a></B><B class=xb1a></B></B></DIV></DIV><B

class=xbottom><B class=xb4b4></B><B class=xb3b4></B><B class=xb2b4></B><B

class=xb1b4></B></B></TD></TR></TBODY></TABLE></DIV>{END body}{$footer}

</BODY></HTML>


What have I done wrong?

T
thesofa author 11/19/2008

changed the logout part to

<a class="tablelinks" href="login.php?a=logout">Log out</a>



which I nicked from an older app from PHPR and it works, it just doesn't look like a button!