Jump to content

have to click twice the submit button


x_maras

Recommended Posts

Hi,

 

I 'm having a table which is show in 2 rows with 2 cells.

In the first one there is a menu and in the second one is the place where the php files from the menu selection are being displayed.

 

the code:

<?php
echo "		<table>
				<tfoot>
					<tr>
						<td colspan='2' align='center'>
							<a href='" . HTTP . TESTLINK . $_SESSION['admin'] . "' target='_blank'>
								" . HTTP . TESTLINK . $_SESSION['admin'] . "
							</a>
							<br />(Test Link)
						<td>
					</tr>
				</tfoot>
				<tbody>";
if(isset($_SESSION['admin'])) {
	$sqlEnqueteName = "SELECT * FROM enquetes WHERE id='". $_SESSION['admin'] ."'";
	$resEnqueteName = mysql_query($sqlEnqueteName);
	$enqueteName = mysql_fetch_array($resEnqueteName);
	echo "			<tr>
						<td width='200' valign='top'>
							enquete: <b>". $enqueteName['name'] ."</b><br />";
							include("menu.php");
	echo "				</td>
						<td valign='top' rowspan='2'>";
							getPage($_GET['p']);
	echo "				</td>
					</tr>";
} else {
	getPage($_GET['p']);
}

echo "			</tbody>
			</table>";
?>

 

in the pages that appear in the right side of the table the are several drop down menus.

In some of them I can choose a new enquete but the name in the left part needs a reload to appear.

It works because every time the right value is being stored in the session, but it look pretty like this.  :(

 

I tried to use a javascript in order to reload the page every time that I press the buttons to select from the drop downs but this also doesnt look good because a message box appears and I have to press refresh in it.

 

Any tips?

 

Thank you.

Link to comment
https://forums.phpfreaks.com/topic/158728-have-to-click-twice-the-submit-button/
Share on other sites

  • 3 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.