|
Posted by hug on 12/31/05 13:35
"Jatin" <jnnaik2002@yahoo.co.in> wrote:
>
>hug wrote:
>> "Jatin" <jnnaik2002@yahoo.co.in> wrote:
>>
>> >Hello everybody,
>> >
>> >I am new to PHP, and i want to validate the form data posted from one
>> >html form. if any error occurs then it should display the error message
>> >on the same page. can anybody suggest me something?
>>
>> I have lots of code that does that, but there's a bunch of proprietary
>> infrastructure involved to make it easy for me, and as a result I've
>> forgotten a few of the details and might need to look them up.
>>
>> What exactly seems to be the problem? The basic structure of the code
>> will probably turn out to be something like:
>>
>> // read inputs (if any) posted from form data and validate
>>
>> // issue any necessary error messages
>>
>> // display form using previous inputs if any
>>
>> --
>> http://www.ren-prod-inc.com/hug_soft/store.php?action=contact
>
>Thanks for great help.now is it possible to validate on the same page?
>Means i want to Accept data from user and this form will validate the
>data and will show an error message on the same page itself. If no
>error occurs then should forward to next page. I have found the similar
>solution but i lost that link....
Do you mean without submitting the form and sending the data to the
server? Not in PHP alone, you could fiddle with javascript but I
wouldn't bother.
--
http://www.ren-prod-inc.com/hug_soft/store.php?action=contact
Navigation:
[Reply to this message]
|