Hi Guys. Please help me..

I am familiar in passing form values to another page using submit button.. But what i need now is to pass the values of the form using the href link. please help me. thanks a lot.

<form name="pass" action="validate.php" method="post">

<input type="text" name="Form1">

<a href"revalidate.php">revalidate</a> this is the one that i need to pass the form value.

<input type="Submit">
</form>

Please help me. Thanks a lot.

Recommended Answers

All 4 Replies

some thing like this:

<script type="text/javascript">
function revalidate()
{
alert("test");
	test1=document.getElementById("test1").value;
	test2=document.getElementById("test2").value;
	window.location="revalidate.php?test1="+test1+"&test2="+test2;
}
</script>
<form name="pass" action="validate.php" method="post">

<input type="text" name="test1" id="test1">
<input type="text" name="test2" id="test2">
<a href="javascript:revalidate();">revalidate</a> 
<input type="Submit">
</form>

Sir.. How can i access the passed values on the other page??i am using php so i prefer to get the values using $_GET of $_POST
Thanks..

and sir. i am having this kind of error when i click the revalidate


Access forbidden!

You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.
Error 403
localhost
3/11/2011 2:38:13 PM
Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.