Jump to content


form validation - NOOB

  • Please log in to reply
1 reply to this topic

#1 aeafisme23

  • Members
  • PipPipPip
  • Advanced Member
  • 121 posts
  • LocationUSA

Posted 27 October 2006 - 08:13 PM

First of all I have researched on phpfreaks and to no avail there was nothing as "BASIC" as i needed.

I just want SIMPLE error handling messages to go to the corresponding column, i do not want it above, below, i want it in specific columns where i stated i need below. NO JAVASCRIPT. Keep it noobish for me, meaning no db interaction just simple :)  THANKS :)


<form name="cform" method="post" action="formdisplay.php">
<td><p>First Name:</p></td>
<td><input type="text" maxlength="25" name="firstname"></td>
<td>if error i want it to go here on submit, I DO not want javascript at all, and i do not want it 
to go to display results, i wanted it validated here using php</td>
<td><p>Last Name:</p></td>
<td><input type="text" maxlength="25" name="lastname"></td>
<td>error handling</td>


<p>Display Results</p>
echo "<p>Name: " . $firstname . " " . $lastname . "</p>";

http://www.phpfreaks...c,36973.0.html  I thought the main posting was goign to help me but only found out that it was very very advanced for a noob such as myself. Much help is appreciated.

#2 Caesar

  • Members
  • PipPipPip
  • Advanced Member
  • 1,025 posts

Posted 27 October 2006 - 08:23 PM

What criteria do you want to use to check against the data & validate the posted form values? (If not from a db)

Also... http://www.php.net is a good place to start before even doing anything. Why tackle such things if you have not out in the effort to learn the basics? And yes, such validation can be done using the most basic understanding/experience with PHP.
PHP Ninja

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users