This topic is locked

Button to return to my home page

3/18/2009 6:35:43 PM
PHPRunner General questions
author

Hi!
If I wanted to have a button that takes me to the home page of my website [my database files are all in a directory under my main directory that contains my homepage 'index.php'] on my list and view pages, could I just add something like this only name it a different name [say [homebutton_attrs]?
$xt->assign("backbutton_attrs","onclick=\"window.location.href='pedigreeslist.php?a=return'\"");
If so, what would I change href='pedigrees
.php?a=return to?
Thanks!!

J
Jane 3/19/2009

Hi,
you can create this button using custom event (Insert PHP code snippetoption on the Visual Editor tab).

Here is a sample:

echo "<input type=button class=button value=\"Return to the main page\" onclick=\"window.location.href='http://yourwebhost.com/index.php';\">";;

500461 3/19/2009

Hi,

you can create this button using custom event (Insert PHP code snippetoption on the Visual Editor tab).

Here is a sample:


Thank you!!!