View unanswered posts | View active topics It is currently Tue Dec 12, 2017 3:44 am



Reply to topic  [ 1 post ] 
 PHP tutorial: Full POST method 
Author Message
Junior Member

Joined: Sun Sep 13, 2009 4:08 pm
Posts: 54
Location: United States Of America
Post PHP tutorial: Full POST method
This is what the POST and GET method would of looked like if you completed the code:
[PHP]echo "<form action='index5.php' method='POST'>";
echo "Name:
<Input type='text' name='Fullname'>";
echo "<P>Email:
<Input type='email' name='email'>";
echo "<P>Comment";
echo "<form action='index1.php' method='GET'>";
print "<P><Textarea name='name'> </textarea>
<P><input type='submit' value='Post comment'>";

$server = "Online";
$message = $_POST['name'];
$Username = $_POST['Fullname'];
$Email = $_POST['email'];

echo "<P><B>Username:</B> ''$Username''";
echo "<P><B>Email:</B> ''$Email''";
echo "<P><B>Message:</B> ''$message''";
[/PHP]
And then your output :)

Change your page title in <form>.


Sun Nov 01, 2009 9:12 am
Report this post
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 0 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.