$_POST And $_REQUEST variables Ignored by echo function

Problems with the Windows version of XAMPP, questions, comments, and anything related.

$_POST And $_REQUEST variables Ignored by echo function

Postby mirundiuk » 22. August 2015 12:19

I have declared variables using $_POST and $_REQUEST to hold data entered in fields on forms eg
$name=$_REQUEST['lastname']; to hold the name entered in a text box on the form with name="lastname".
The opening tag of this form includes action="insertProcess.php".
insertProcess.php is the external file to handle the insert.php file.
The code in this external insertProcess.php file includes
echo($firstname .' ' .$lastname);
When I run the form file, insert.php, fill in the first name and last name details in the relevant text boxes and click
the submit button, I expect to see the first name and last name entered on the form to appear on the screen but they don't.
I need help with solving this problem. My php editor is Aptana Studio 3.

Any help out there ?

Rgards Moses Mirundi
Last edited by mirundiuk on 22. August 2015 13:35, edited 3 times in total.
Posts: 1
Joined: 22. August 2015 11:17
Operating System: Windows 8

Re: $_POST And $_REQUEST variables Ignored by echo function

Postby Altrea » 22. August 2015 12:42

mirundiuk wrote:echo(firstname .' ' .lastname);

You missed the $ in front of your variable names
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
AF Moderator
Posts: 9360
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Return to XAMPP for Windows

Who is online

Users browsing this forum: Altrea and 59 guests