[SOLVED] Passing Parm from .php to .php with using form.
Posted: Wed Dec 03, 2003 11:48 pm
Hi, I am a new user of PHP. I am doing a project with MySQL . I want to be able to pass info in the following manner, but there seems to a restriction?
================================
This gives the following error:
Notice: Undefined index: val in D:\WebApps\rdb.php on line 2
================================
How can I pass val to the rdb.php from pr.php?
I have about 12 parms to pass. Do i need to use the URL way of passing parms? or is there a way to use $_GET or $POST?
[Added php tags for eyecandy --JAM]
Code: Select all
r.php ========================
<html>
<head>
</head>
<title>Registration Page
</title>
<style type="text/css">
body {background-color: #ffffc0}
</style>
<body>
<?php
include("logo.html");
include("menu.html");
include("register\\r.html");
include("trailer.html");
?>
</body>
</html>
r.html ===========================
<form action="pr.php" method="post">
<input type="text" name="val">
<input type='submit'>
</form>
pr.php ===========================
< form action="rdb.php method="post">
<?php
$val = $_POST['val'];
?>
<input type="submit" value="submit">
</form>
rdb.php ===========================
<?php
$val = $_POST['val'];
?>This gives the following error:
Notice: Undefined index: val in D:\WebApps\rdb.php on line 2
================================
How can I pass val to the rdb.php from pr.php?
I have about 12 parms to pass. Do i need to use the URL way of passing parms? or is there a way to use $_GET or $POST?
[Added php tags for eyecandy --JAM]