Rachel Posted March 5, 2011 Share Posted March 5, 2011 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 More sharing options...
trq Posted March 5, 2011 Share Posted March 5, 2011 Sorry, what is the problem? Link to comment https://forums.phpfreaks.com/topic/229658-function-problem/#findComment-1183196 Share on other sites More sharing options...
Rachel Posted March 5, 2011 Author Share Posted March 5, 2011 ffs. was thinking about the code and i forgot the question. looks like the code is refreshing to itself rather than going to the page required. all its doing is asking for confirmation (button) then does nothing Link to comment https://forums.phpfreaks.com/topic/229658-function-problem/#findComment-1183198 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.