Page 1 of 1

[solved]How to add anchor to form action?

Posted: Mon Jun 09, 2008 8:19 am
by piotrekkr
Hi. I have problem. I have page that has few forms one under another and they are longer than webbrowser height. When I submit one formsĀ  that is on the bottom, page reloads and I must rewind page to that form to see it again. I know that html anchors can rewind for me automaticly but i dont know how to add anchor to a tag. Is there any way to make CreateFormstart function to do it for me or do I need to do it in other way? Thank's for help :)

PS sorry for my poor english :)

EDIT:

Ok. I managed to do it with code like that:

Code: Select all

$this->smarty->assign('formstart_filter', str_replace('index.php', 'index.php#katalog_cv',
$this->CreateFormstart($id, 'cv_catalog', $returnid, 'get', '', true)));
Someone should think abaut anchor param in CreateFormstart() in the core in new wersion of CMSMS. Bye