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

Jump to content

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

Chapter 1 Echo misses to display some fields

#1 User is offline   Balachandar.i 

  • New Member
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 05-January 13

Posted 05 January 2013 - 04:30 AM

Hi,

In chapter one, when I test ‘aliens abducted me’ form. Soon after submitting fields. report.php fail to display all the submitted fields It misses values of ‘number of aliens’, ‘ the aliens did this’ and ‘other comments’
I’m testing them in live manner. Enclosed report.html and report.php files.
Couldn’t find what’s wrong in the code.

-Balachandar

Attached File(s)


0

#2 User is offline   Hannybaby 

  • New Member
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 17-November 12

Posted 05 January 2013 - 09:50 AM

View PostBalachandar.i, on 05 January 2013 - 04:30 AM, said:

Hi,

In chapter one, when I test ‘aliens abducted me’ form. Soon after submitting fields. report.php fail to display all the submitted fields It misses values of ‘number of aliens’, ‘ the aliens did this’ and ‘other comments’
I’m testing them in live manner. Enclosed report.html and report.php files.
Couldn’t find what’s wrong in the code.

-Balachandar


Hi

I'm a php newbie myself... nevertheless I looked at at your code and I think the problem is that you have to write $POST instead of $post (capital letters)...

Hope that helps :)
0

#3 User is offline   Balachandar.i 

  • New Member
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 05-January 13

Posted 05 January 2013 - 10:12 AM

View PostHannybaby, on 05 January 2013 - 09:50 AM, said:

Hi

I'm a php newbie myself... nevertheless I looked at at your code and I think the problem is that you have to write $POST instead of $post (capital letters)...

Hope that helps :)


Hi,

Thanks alot for your suggestion. But, after changing $_POST to $_post , output gone worser . report,php failed to display all the submitted fields.

But rectified using suggestions provided by lemuel.

Thanks again.

Attached thumbnail(s)

  • Attached Image: Capture.PNG

0

#4 User is offline   Balachandar.i 

  • New Member
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 05-January 13

Posted 05 January 2013 - 10:17 AM

View Postlemuel, on 05 January 2013 - 09:56 AM, said:

$_POST is the only thing that works. Not $post or $_post or even $POST.


It worked :) . Thanks alot !!!

Attached thumbnail(s)

  • Attached Image: Capture1.PNG

0

#5 User is offline   Hannybaby 

  • New Member
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 17-November 12

Posted 08 January 2013 - 01:09 PM

View PostBalachandar.i, on 05 January 2013 - 10:17 AM, said:

It worked :) . Thanks alot !!!


:unsure: I forgot these _ thing between $ and POST... sorry for that *embarrassed* :blink: But great that you solved the prob :)
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