Forum Moderators: open

Message Too Old, No Replies

How send a value from onepage to other using javascript .

The have cut short the code to java and html but using it in php

         

santosh

8:32 am on Oct 11, 2003 (gmt 0)

10+ Year Member



I have a table with a value, when i click on that value it should be taken to other page using post. Here is code...not working.

<html>
<head>
</head>
<SCRIPT LANGUAGE="JavaScript">
function submit(next){
document.nextpage.next.value = next;
document.nextpage.submit();
}
</SCRIPT>
</head>
<body bgcolor="#0A6CCE">
<form method="POST" name="nextpage" action="singlestudent.php">
<input type="hidden" name="next">
</form>
<table>
<tr>
<td valign="top" bgcolor="#CCCCCC"><A href="javascript:suburl(444)">444</td>
</table>
</html>

please help me out..

MonkeeSage

9:22 am on Oct 11, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi santosh,

Welcome to WebmasterWorld!

Mabye a typo, but you don't have anything calling your submit() function that I can see -- you are calling suburl() -- which doesn't appear to exist in your page...either change the name of the function to suburl or change the function callback in the link to submit and see if that does the trick.

Jordan