Basic Scripts Giving a Hard time...:(

This is where you share YOUR scripts with others

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 21
Joined: Tue Jul 12, 2011 3:51 am

Fri Sep 09, 2011 3:05 am

<form action="post2.php" method="post">
<p>First Name:<input type="text"

name="first_name" size="10"></p>
<p>Last Name:<input type="text"

name="name2" size="10"></p>
<p>Email:<input type="text" name="email"

<p>Posting:<textarea name="posting"

rows="15" cols="20"></textarea></p>
<input type="submit" name="submit"

value="Send my feedback" />

$name=$first_name .". $last_name;
print '$posting';

pls help...

User avatar
php-forum GURU
php-forum GURU
Posts: 2192
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Mon Sep 12, 2011 4:25 am

1st ERROR: remove the double quote from this line, and use two single quotes with the space as you (I think) intended.

$name=$first_name .". $last_name;

should be...
$name = $first_name .' '. $last_name;

The second error:
print '$posting';

should be...
print $posting;

Post Reply