PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old January 24th, 2012, 09:48 PM
smilefreak24 smilefreak24 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2012
Posts: 2 smilefreak24 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 35 m 15 sec
Reputation Power: 0
New Php coder, and Having some trouble!

Hello~ im just learning to code php for the first time and im having some trouble. I'm using a book right now thats helping me learn, but for whatever reason, the code that i typed out form the book is coming out with errors. I was wondering if anyone knew how to fix it?

(regular php heading here)
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Your Feedback</title>
</head>
<body>
<?php // Script 3.4 handle_form.php #2
ini_set ('display_errors', 1);
// Let me learn from me mistakes!


// This page receives the data from feedback.html.
// It will receive: title, name, email, response, comments, and submit in $_POST.
// Create shorthand versions of the variables;
$title = $_POST['title'];
$name = $_POST['name'];
$response = $_POST['response'];
$comments = $_POST['comments'];
// Print the received data:
print "<p>Thank you, $title $name,for your comments.</p>
<p>You stated that you found this example to be '$response' and added:<br />$comments</p>";
?>
</body>
</html>

Reply With Quote
  #2  
Old January 24th, 2012, 10:10 PM
smilefreak24 smilefreak24 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2012
Posts: 2 smilefreak24 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 35 m 15 sec
Reputation Power: 0
Quote:
Originally Posted by smilefreak24
Hello~ im just learning to code php for the first time and im having some trouble. I'm using a book right now thats helping me learn, but for whatever reason, the code that i typed out form the book is coming out with errors. I was wondering if anyone knew how to fix it?

(regular php heading here)
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Your Feedback</title>
</head>
<body>
<?php // Script 3.4 handle_form.php #2
ini_set ('display_errors', 1);
// Let me learn from me mistakes!


// This page receives the data from feedback.html.
// It will receive: title, name, email, response, comments, and submit in $_POST.
// Create shorthand versions of the variables;
$title = $_POST['title'];
$name = $_POST['name'];
$response = $_POST['response'];
$comments = $_POST['comments'];
// Print the received data:
print "<p>Thank you, $title $name,for your comments.</p>
<p>You stated that you found this example to be '$response' and added:<br />$comments</p>";
?>
</body>
</html>


nvm..figured out the issue..and now i dont know how to delete this...

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > New Php coder, and Having some trouble!


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap