Ask a Question related to PHP Development, Design and Development.
-
Murugesan #1
Passing values from one page to another
Hello all,
[snip]
--------------------------------------------
//Page0.php
<a href="page1.php?empid=1">Enter</a>
--------------------------------------------
--------------------------------------------
//page1.php
<script language="javascript">
function submitform()
{
//Check for empty values in text box
}
</script>
<form onsubmit='return submitform()' method=POST action='page2.php'>
<input type=text name=uname >
<input type=hidden name=empid value=<?php echo $empid;?>>
</form>
<?php
echo $empid;
?>
--------------------------------------------
--------------------------------------------
//page2.php
<?php
echo $empid;
?>
--------------------------------------------
In page 1 I am able to get the value 1 of empid.
But in page 2 I am not able to get it.
Any solutions
-murugesan
Murugesan Guest
-
Passing values to a headerRenderer
I've found myself in a position where I need to dynamically add content to the headerRenderer of a datagrid depending on the column header. As a... -
Passing List Values
Hi, I have a long list of email addresses and I need to pass it to the next page. Say: <cfform ... action="Page1.cfm?mList=#mListVal#> When I... -
Passing values from web page to php script
Hi Everyone, First excuse my language and the way I explain things. I try to be clear enough. I do have a simple system that processes... -
passing 2 values from a page to another ASP page
<a href="page2.asp?var1=Value1&var2=Value2">click</a> or use a link that invokes some javascript to post the form -if- you still want to use a... -
passing through values
Hello i wanna pass through the value model like this <form method="get" action="meeet.htm"> <div align="center">Nummer: <input type="input"... -
Chris Shiflett #2
Re: [PHP] Passing values from one page to another
--- murugesan <mukeshgct@hotmail.com> wrote:
....> <a href="page1.php?empid=1">Enter</a>[url]http://www.php.net/register_globals[/url]> <input type=hidden name=empid value=<?php echo $empid;?>>
Chris
=====
Become a better Web developer with the HTTP Developer's Handbook
[url]http://httphandbook.org/[/url]
Chris Shiflett Guest



Reply With Quote

