FireFox! The PHP Forum Loans and Credit
Panama Web Design for Hire Free Insurance Quotes!
Web Hosting Advertise Here $10 a Month Designer Children
Never Pay Taxes Again HGH Domain name registration
Web Hosting and Dedicated Servers Insurance Affordable web-hosting


HomeWatched TopicsRegisterSearchDirectory
FAQMemberlistUsergroupsLog inStoresItemsBank
Google

Reply to topic Page 1 of 1
My PHP can not get the value sent by html form
Message  

Reply with quote
Post My PHP can not get the value sent by html form 
Dear Senior,

I have a basic problem, my PHP script can not get the value sent by form. This scrip in others website is no problem.

Example:

<Form method=post action=get_it.php>
<input type=text name=modul>
.....
.....
</form>

file get_it.php:

<?

print $modul;

?>

This no result... $modul is empty!

Please help.

Regards,
Zamah


_________________
Jhon Bright
View user's profile Send private message Visit poster's website Yahoo Messenger

Reply with quote
Post Re: My PHP can not get the value sent by html form 
u should define the variable modul inside the php script...
like the below one:

<?php
$modul=htmlspecialchars($_POST['modul']);
echo "$modul";
?>
now u 'll get the output..................
try this............

View user's profile Send private message Send e-mail

Reply with quote
Post Re: My PHP can not get the value sent by html form 
Dear sankar..
I'll try first ... thank you veru much.

Smile

sankar62 wrote:
u should define the variable modul inside the php script...
like the below one:

<?php
$modul=htmlspecialchars($_POST['modul']);
echo "$modul";
?>
now u 'll get the output..................
try this............



_________________
Jhon Bright
View user's profile Send private message Visit poster's website Yahoo Messenger

Reply with quote
Post  
To get the form field value to your page "get_it.php" you have to set gobal variable to 1 in your php.ini file
or
you can get it by writing $_POST['modul'] as your form method is post.

If you set your form method to get then you can get your form value by writing $_GET['modul'].


_________________
--Pankaj Kesharwani
View user's profile Send private message Yahoo Messenger MSN Messenger
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  



Google

FireFox! The PHP Forum Loans and Credit
Panama Web Design for Hire Free Insurance Quotes!
Web Hosting Advertise Here $10 a Month Designer Children
Never Pay Taxes Again HGH Domain name registration
Web Hosting and Dedicated Servers Insurance Affordable web-hosting


Web Design by PlatinumShore.com & Web Hosting by TradeWebHosting.com