MySQL Forums
Forum List  »  PHP

passing php variables from page to page
Posted by: Mark Natividad
Date: February 21, 2006 06:22AM

Im having troubles with passing a php variable from one php page to the next.
Can anyone tell me what the problem could be?? thanks!
Here's my simple code:

this passes email=mark_nsx@yahoo.co.nz to process.php
[email.html]
<html">
<head>
<title>Untitled Document</title>
</head>

<body>
<a href="process.php?email=mark_nsx@yahoo.co.nz">Send Email</a>
</body>
</html>


[process.php]
<?php
$email = $_GET['email'];
?>

<html>
<head>
<title>Untitled Document</title>
</head>

<body>
<p>Email: <?php print "$email"; ?>
</body>
</html>

Options: ReplyQuote


Subject
Written By
Posted
passing php variables from page to page
February 21, 2006 06:22AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.