LinuxQuestions.org
Help answer threads with 0 replies.
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, 02: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, 06: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, 01: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 05:23 PM
No form output in PHP jabfinger Programming 2 07-15-2005 07:48 PM
PHP - incremental/partial output of a page ? michaelsanford Programming 1 07-13-2005 01:37 AM
output game server from qstat w/php spooge Programming 1 02-05-2005 07:49 PM
PHP: save output to a file mikeshn Programming 2 10-25-2003 07:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:12 AM.

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
Open Source Consulting | Domain Registration