View Full Version : Ajax Tab Content Script - dynamically changing tab content

08-24-2006, 07:12 PM
1) Script Title: Ajax Tab Content Script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/

3) Describe problem:

Im building a php code inside a especific tab which queries on a database and draws a table, everything after a user input, in the same page.

I used a script offered in http://www.dynamicdrive.com/forums/showthread.php?t=12105&highlight=ajax+tabs to reselect the same tab, so the result (teorically) can be viewed in the same page which was requested.

When click in the submit button, i got the page with the same tab correctly select, but without any result...

# test.php, (actually a tab)

<form action="" method"get">
<input type="hidden" name"sel" value="5"> <!-- use the same tab -->
<input type="text" name="var" value=""> <!-- some var -->
<input type="submit" value="go">


if( $_GET['var'] != "" )
echo "var value = ".$_GET['var']; // this is never shown


How can I fix it ? Is there any workaround ?

Thx in advance