Jump to content

Simple Text Filed Validation


yandoo

Recommended Posts

Hello there,

 

I'm looking for a little guidance on some validation for my search form please.

 

I have created a search form that a use inputs text to search for records in a database. The ACTION i have on the form is to hyperlink to the search results page. On this results page is where i have added the code to display the search records = to the search field.

 

My problem is that i want to add validation so if the user doesn't input any text into the text field the page doesn't change to the results page (which would display all result in db).

 

If message could simply appear on the Search Form page telling user to not leave text field of search form empty.

 

Any help greatly appreciated

 

Thank :)

Link to comment
https://forums.phpfreaks.com/topic/54097-simple-text-filed-validation/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.