Jump to content

function problem


Rachel

Recommended Posts

i have a function that im trying to get. it looks like its refreshing rather than sending data to the next page.

im very new to java so dobt no what im looking for. the code looks ok to me.

 

thanks for any help

 

	function change() {
		var selectedList = getSelectedList('Change Layout');
		if (selectedList) {
			if (confirm('Do you want to not display the seat/s ' + selectedList + '?')) {
				document.forms[0].newDisplayCode.value=N;
				document.forms[0].action='layout.php?table=<?php echo $table; ?>&seat=<?php echo $seat; ?>';
				document.forms[0].submit();
			} else {
				clearSelection();
			}
		}
	}

 

php side is

 

<input type='button' value='Change Display' onclick='change()'/>

Link to comment
https://forums.phpfreaks.com/topic/229658-function-problem/
Share on other sites

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.