LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-19-2003, 01:09 PM   #1
robbfen
LQ Newbie
 
Registered: Jun 2003
Posts: 16

Rep: Reputation: 0
Php output


Hello Everyone,

I am not new to linux but I am new to php and I have a problem with my script or something to do with my redhat sever, I am not sure.

Anyhow I have made a form page at www.sablestrokes.ca/comm.php and have it set up to take data and spit it out on a confirm page. Please forgive the formatting as it is in the first stage. Anyway, if you fill out the form and submit it you get the sentence. " This is your first name. instead of "This is your first name ROBB. The page comm.php is seeing my process.php page and spitting out the first part but is not getting the variables $firstname or ROBB is not showing up. Any ideas?

Thanks

Robbfen
 
Old 06-19-2003, 05:47 PM   #2
Mirrorball
Member
 
Registered: May 2003
Location: Brazil
Distribution: Gentoo
Posts: 81

Rep: Reputation: 15
You probably have register_globals turned off. Check it by looking at your php.ini file. In fact it's better this way for better security. You can print $firstname by using $_POST['firstname'] if you're sending the form's content by "post" or $_GET['firstname'] if they are sent by "get".
 
Old 06-20-2003, 12:03 AM   #3
robbfen
LQ Newbie
 
Registered: Jun 2003
Posts: 16

Original Poster
Rep: Reputation: 0
I got it

Thanks Mirrorball!

I was actually typing $_POST['firstname'] out on the feedback page and there should be no '' around firstname in this script just in the form. Like.. $_POST[firstname].

Thanks a bunch!

Robbfen.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
display ifconfig output in php ?? ALInux Programming 1 10-29-2005 04:23 PM
No form output in PHP jabfinger Programming 2 07-15-2005 06:48 PM
PHP - incremental/partial output of a page ? michaelsanford Programming 1 07-13-2005 12:37 AM
output game server from qstat w/php spooge Programming 1 02-05-2005 06:49 PM
PHP: save output to a file mikeshn Programming 2 10-25-2003 06:57 AM


All times are GMT -5. The time now is 02:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration