O'Reilly Forums: Chapter 1 - Page 41 - O'Reilly Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Chapter 1 - Page 41 Radio Buttons — Missing values

#1 User is offline   PhilipHarper 

  • New Member
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 09-July 14
  • Gender:Male
  • Location:London, England
  • Interests:Surfing, Snowboarding, Hiking. Learning new stuff!

Posted 09 July 2014 - 12:35 PM

Hello everyone.

I'm really confused about the missing radio buttons, they're just not there on the response of the report.php

here's what I've got...

<html>
<head>
<title>Aliens Abducted Me - Report and Abduction</title>
</head>
<body>
<h2>Aliens Abducted Me - Report an Abduction</h2>


<?php
$name = $_POST['firstname']. ' ' .$_POST['lastname'];
$when_it_happened = $_POST['whenithappened'];
$how_long = $_POST['howlong'];
$how_many = $_POST['howmany'];
$alien_description = $_POST['aliendescription'];
$what_they_did = $_POST['whattheydid'];
$fang_spotted = $_POST['fangspotted'];
$other = $_POST['other'];
$email = $_POST['email'];


echo 'Thanks for submitting the form ' . $name . '<br />';
echo 'You were abducted ' . $when_it_happened;
echo ' and were gone for ' . $how_long . '<br />';
echo 'Number of aliens ' . $how_many . '<br />';
echo 'Describe them: ' . $alien_description . '<br />';
echo 'The aliens did this: ' . $what_they_did . '<br /';
echo 'Was Fang there? ' . $fang_spotted . '<br /';
echo 'Is this your email address? ' . $email . '<br />';
echo 'Other comments: ' . $other . '<br />';
?>

</body>
</html>


I just cannot understand where I'm going wrong? Why don't I see the 'Have you seen my dog Fang?' radio response?

Very puzzled.

Thanks for the help

Philip
[sup][url="http://www.philipharper.info"]Here's my Graphic Design portfolio[/url][/sup]
0

#2 User is offline   PhilipHarper 

  • New Member
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 09-July 14
  • Gender:Male
  • Location:London, England
  • Interests:Surfing, Snowboarding, Hiking. Learning new stuff!

Posted 09 July 2014 - 12:45 PM

Found it!

it was this line...

echo 'The aliens did this: ' . $what_they_did . '<br /';

missin > before the ;



literally went bonkers trying to fix it.
[sup][url="http://www.philipharper.info"]Here's my Graphic Design portfolio[/url][/sup]
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users