RE: [PHP-WIN] Form data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Muhammad

You need to grab the variable first - register_globals is in safe mode,
probably - so you should do this (you seem to be using an older, insecure
method of doing it):

<html>
<body>
<p>Welcome
<?php
if (isset($_POST["Applicant"])) {
	$Applicant = $_POST["Applicant"];
} else {
	$Applicant = "Nobody";
}
echo ($Applicant);
?>!</p>
</body>
</html>

Thanks,

John Ellingsworth
http://mail.med.upenn.edu/~jellings/




-----Original Message-----
From: Muhammad Imran [mailto:imran@sdpi.org]
Sent: Thursday, August 21, 2003 10:57 PM
To: php-windows@lists.php.net
Subject: [PHP-WIN] Form data



  How i can process my form data, my form contain just one text input field
and .php code have to show it but when i press ""SUBMIT" button my page url
does not change nor the input text seen thier. my php code is :

<html>
<body>
<p>Welcome<?php echo ($Applicant); ?>!</p>
</body>
</html>

html form just send the input text with Applicant text field data. However
my php and apache is working fine. Do any one have idea.
Imran


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux