| | |
Regarding: Pass one to Another Page values with coding enclosed
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jul 2007
Posts: 3
Reputation:
Solved Threads: 0
hi
i have write the php language code. The login form creation. The validation part is ok.. but data is not pass to one page to another page. I have used $_REQUEST and $_Post method but not working.. any body replay me..
the following codes..
THe First file is login.php. in the file having login details.. the following code s are
<html>
<head>
<title>Welcome to Login page</Title>
<script language="javascript" type="text/javascript">
{
function checking()
{
if ((document.log.username.value=="")||(document.log.password.value==""))
{
alert("user name/password cannot be empty");
document.log.username.focus();
return false;
}
}
}
</script>
</head>
<body>
<br><br><br><br><br><br><br>
<form action="welcome.php" name="log" method="post" onsubmit="return checking()">
<table border="2" align="center" cellspacing=2 cellpadding =3 bgcolor="gray">
<tr>
<td>User Name </td>
<td><input type="text" id="username" name="username"></td>
</tr>
<tr>
<td>Password</td>
<td><input type="password" id="password" name="password"></td>
</tr>
<tr cellspam=2>
<td > <input type="submit" name="login" value="Login">
<input type="reset" name="reset" value="Reset"> </td>
<td>New User <a href="reg.php">Click Here</a></td>
</tr>
</table> </form></body></html>
The Other file welcome.php. codes are
<html>
<head>
<title></title>
</head>
<body alink="blue" vlink="blue" link="blue">
<p align="right">
<a href="profile.php"> Edit Profile</a>
<a href="signout.php"> Sign Out</a> </p>
<B> Welcome to Your Page
</B>
<?php
echo $_POST['username'];
//echo $_REQUEST['username'];
?> </body> </html>
Reply me immediately if possible. or any other setting change coding part and editor part if anybody tell
Thanks
muruganasm
i have write the php language code. The login form creation. The validation part is ok.. but data is not pass to one page to another page. I have used $_REQUEST and $_Post method but not working.. any body replay me..
the following codes..
THe First file is login.php. in the file having login details.. the following code s are
<html>
<head>
<title>Welcome to Login page</Title>
<script language="javascript" type="text/javascript">
{
function checking()
{
if ((document.log.username.value=="")||(document.log.password.value==""))
{
alert("user name/password cannot be empty");
document.log.username.focus();
return false;
}
}
}
</script>
</head>
<body>
<br><br><br><br><br><br><br>
<form action="welcome.php" name="log" method="post" onsubmit="return checking()">
<table border="2" align="center" cellspacing=2 cellpadding =3 bgcolor="gray">
<tr>
<td>User Name </td>
<td><input type="text" id="username" name="username"></td>
</tr>
<tr>
<td>Password</td>
<td><input type="password" id="password" name="password"></td>
</tr>
<tr cellspam=2>
<td > <input type="submit" name="login" value="Login">
<input type="reset" name="reset" value="Reset"> </td>
<td>New User <a href="reg.php">Click Here</a></td>
</tr>
</table> </form></body></html>
The Other file welcome.php. codes are
<html>
<head>
<title></title>
</head>
<body alink="blue" vlink="blue" link="blue">
<p align="right">
<a href="profile.php"> Edit Profile</a>
<a href="signout.php"> Sign Out</a> </p>
<B> Welcome to Your Page
</B>
<?php
echo $_POST['username'];
//echo $_REQUEST['username'];
?> </body> </html>
Reply me immediately if possible. or any other setting change coding part and editor part if anybody tell
Thanks
muruganasm
Last edited by muruganasm; Jul 15th, 2007 at 3:11 am.
![]() |
Similar Threads
- Updated : Simple ASP.Net Login Page (ASP.NET)
- Parameter error for executeNonQuery() (VB.NET)
- Perl/CGI (Checking For Data) (Computer Science)
- how to get pass url variables from one page to another page with out knowing them? (ColdFusion)
- Problem passing value from radio button to second page. (PHP)
Other Threads in the PHP Forum
- Previous Thread: mysql_real_escape_string woes
- Next Thread: File Uploads
Views: 2734 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class clean cms code countingeverycharactersfromastring cron curl database date directory display download dynamic echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla jquery limit link login loop mail match menu methods mlm mod_rewrite multiple mysql oop parse paypal pdf php problem query radio random recursion regex remote script search select server sessions simple sms soap source space spam speed sql structure syntax system table tutorial update updates upload url validation validator variable video web xml youtube





