Reply to Submitting forms by clicking on text-based tabs as opposed to SUBMIT button

Your name:

Reply:


Posted by Alex on 12/28/06 14:18

Hello,

I hope I can explain this properly. I'm writing an application with a
tabbed-based navigation, and a form which gets filled out by users will
be split into 5 subtabs. What I need is instead of the user needing to
hit a SUBMIT button each time the form within a tab is complete (Before
clicking the next tab), I want clicking any tab to submit the data.
I'm affraid that by not doing this, people will fill out the data in
tab 1, click tab 2, fill it out, click tab 3, and so on... and none of
their data will be submitted.

My tabs are text based, and I can use the following code to submit the
data from the tab:
<a href="javascript:document.formName.submit();">Submit</a>

But if I put this in the URL for say Tab2, how can I tell the browser
to open the page for tab 2? I'm using CGI coding to process the form
no matter what page loads next, but upon clicking TAB 2 I need the page
for TAB2 to load, or TAB3 if that's clicked, and so on.

Any ideas on how to do this? Did I totally confuse everyone?

Here's an example:

<li><a href="/CaseRecord/?page=OR" class="here">Surgical/OR</a></li>
<ul>
<li><a href="/CaseRecord/?page=Surgical" class="here">Page 1</a></li>
<li><a href="/CaseRecord/?page=Surgical2" >Page 2</a></li>
<li><a href="/CaseRecord/?page=Surgical3" >Page 3</a></li>
<li><a href="/CaseRecord/?page=Surgical4" >Page 4</a></li>
<li><a href="/CaseRecord/?page=Surgical5" >Page 5</a></li>
</ul>

This is my tabbed menu (or part of it anyway). In this code I'm
sitting on Page 1, but upon finishing the form on Page 1, if someone
clicks Page 2, Page 3, Page 4, or Page 5 i want the form to submit and
then load that page which was clicked.

Is this possible? Thanks for any ideas ...

Alex

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация