[solved]How to add anchor to form action?

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
piotrekkr
Forum Members
Forum Members
Posts: 38
Joined: Mon Mar 05, 2007 5:30 pm

[solved]How to add anchor to form action?

Post 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
Last edited by piotrekkr on Tue Jun 10, 2008 1:10 pm, edited 1 time in total.
Post Reply

Return to “Developers Discussion”