Get support from Xavier Media
It is currently Sun Dec 08, 2013 3:28 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Form Processing problem
PostPosted: Wed Jan 16, 2008 1:38 pm 

Points:
I am an absolute newbie to PHP - just started learning it a few days ago through Melonfire as suggested in the Beginers tutorial on this forum. Having reached the form processing part - I got stuck.
My browsers simply do not show the processed results. I tried Firefox, Opera, IE (all updated versions); I tried through PHP Editor (version2.22); I reinstalled PHP - latest version 5.2.5 - but no results.
If I write a direct PHP program and run it, it works well, phpinfo() also works well, but using form processing - just no way. I used the following code:
(1) FormProcessing.htm

<html>
<head></head>
<body>
<form action="message.php" method="post">
Enter your message: <input type="text" name="msg" size="30">
<input type="submit" value="Send">
</form>
</body>
</html>

(2) message.php

<html>
<body>
<?php
$input = $_POST['msg'];
echo "Your message is: ".$input;
?>
</body>
</html>

Can somebody please show me the way out?


Report this post
Top
  
Reply with quote  
 Post subject: Re: Form Processing problem
PostPosted: Wed May 14, 2008 8:19 pm 
Offline
XavierForum.com Moderator
XavierForum.com Moderator
Member
Member

Joined: Fri Jun 10, 2005 2:51 am
Posts: 110
Points: 0
That should work. Try replacing $_POST['msg'] with $HTTP_POST_VARS['msg']

_________________
XMG Forum Moderator & Webmaster
Xavier Media™ Australia & New Zealand and Xavier Media™ Europe


Report this post
Top
 Profile Send private message  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Registered users: emicybicH


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Portal » Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
[
SEO MOD © 2007 StarTrekGuide ]