How do you get the tabs to move from tab to tab when the tabs are within a form?
CODE:
<body>
<form action="./Information.php" method="post">
<input type="hidden" name="action" id="action" value=""/>
<table style="background-color: #EEF3FB; left: 150px; color: black; width: 100%; border-bottom: thin solid #4b6c9e; border-top: thin solid #4b6c9e; border-left: thin solid #4b6c9e; border-right: thin solid #4b6c9e; vertical-align: middle; " >
<tr style="border-bottom: medium gray solid;">
<td>
<table style="width: 100%; border-collapse:collapse;">
<tr style="background-color: #0A66D0;">
<td style="width: 30%; text-align: left; vertical-align: middle;">
<h2>
<b>Information</b>
</h2>
</td>
<td style="width: 30%; text-align: left; vertical-align: middle;">
<input type="submit" value="Search" class="button"/>
</td>
</tr>
</table>
</td>
</tr>
<tr style="border-bottom: medium black solid;">
<td>
<table style="width: 100%">
<tr style="vertical-align: top; padding: 15px; width: 100%;">
<td style="width: 100%">
<?php
define ("TABS_DIR", $_SERVER['DOCUMENT_ROOT']."/PHPClasses/APPHPTabsv326/");
require_once(TABS_DIR.'tabs.class.php');
$tabs = new Tabs();
$tabs->SetId(23);
$tabs->SetStyle("g-style");
$tabs->SetSubmissionType("get");
$tabs->SetChildTabsType("tabs");
$tabs->SetDirection("ltr");
$tabs->Debug(true);
## tabs
$BrokerInformationTabs=$tabs->AddTab("Information","");
$AddressPhone=$BrokerInformationTabs->AddTab("Address & Phone","./AddressPhone.php");
$Contacts=$BrokerInformationTabs->AddTab("Contacts","./Contacts.php");
$tabs->SetWidth("100%");
$tabs->UseAnchor(true);
$tabs->Display();
?>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
Tabs Inside of a Form.
Moderators: alexandrleonenko, Milton
-
- Site Admin
- Posts: 6082
- Joined: Jan 7th, '09, 23:18
- Contact:
Re: Tabs Inside of a Form.
It's impossible.
Do not place ApPHP Tabs code inside another HTML Form: <form>...</form>
Do not place ApPHP Tabs code inside another HTML Form: <form>...</form>
Re: Tabs Inside of a Form.
OK. So now the question is how can I use the tabs to display editable data and have the option to save or ignore changes to the data without the tabs being part of a form?
-
- Site Admin
- Posts: 6082
- Joined: Jan 7th, '09, 23:18
- Contact:
Re: Tabs Inside of a Form.
You may put HTML code with form elements inside Tabs'c content, but you may not put Tabs inside another form.
Looks here HTML code:
http://www.apphp.com/php-tabs/examples/ ... /index.php
Looks here HTML code:
http://www.apphp.com/php-tabs/examples/ ... /index.php
Re: Tabs Inside of a Form.
Thanks to provide good information and i am searching from many times.