Grow your CSS skills. Land your dream job.

Good tutorial

  • # August 13, 2009 at 2:54 pm

    Hi, anyone out there know a good php form validation tutorial, I can’t seem to find one, i’m sure i have checked this site already and only found javascript validation. Preferably I would like the tutorial to only use the one php file, so the form action refreshes the current page and sends the values to be validated and echoes out the results. The weird thing is that i have managed to do this with one site of mine, but i am trying to do it with another site but i just cant get it to work, and i have know idea why,

    Many Thanks
    CHris

    # August 14, 2009 at 2:42 am

    the problem here is that your having to send it to the server for check, this will make your form slower.

    # August 14, 2009 at 5:19 am
    "ikthius" wrote:
    the problem here is that your having to send it to the server for check, this will make your form slower.

    Are you advocating forms without php validation?

    # August 14, 2009 at 5:30 am

    Was just looking for a form tutorial for someone in the css section and I found this, which may also be useful for you:
    http://myphpform.com/

    # August 14, 2009 at 10:25 am
    "apostrophe" wrote:
    "ikthius" wrote:
    the problem here is that your having to send it to the server for check, this will make your form slower.

    Are you advocating forms without php validation?

    no just pointing out it might be a bit slower being sent to the server for a check to come back thten maybe to get checked again & so on, before being actioned…

    # August 14, 2009 at 11:05 am
    Quote:
    no just pointing out it might be a bit slower being sent to the server for a check to come back thten maybe to get checked again & so on, before being actioned…

    Fair enough. ;)

    You were giving me palpitations there for a minute. :shock:

    # August 14, 2009 at 11:45 am

    I was going to suggest javascript as the check language, as this is client side and a bit quicker

    # August 14, 2009 at 12:17 pm
    "ikthius" wrote:
    I was going to suggest javascript as the check language, as this is client side and a bit quicker

    That would be my preferred method too, although that wasn’t what AlCapone asked for.

    If you are still with us AlCapone, here is a reasonable form tutorial that validates both in jQuery and PHP: http://www.raymondselda.com/php-contact-form-with-jquery-validation/

    # August 14, 2009 at 6:43 pm

    Thanks a lot, i will look into that one as soon as possible.

    # August 14, 2009 at 6:50 pm

    ok, i found this video tutorial which uses ajax to validate when the send button is clicked. Is this a good thing to do? I thought that we had to use php incase the user has disabled jquery… If this needs it enabled to send the for are we defeating the purpose?

    # August 15, 2009 at 1:25 am
    "AlCapone" wrote:
    ok, i found this video tutorial which uses ajax to validate when the send button is clicked. Is this a good thing to do? I thought that we had to use php incase the user has disabled jquery… If this needs it enabled to send the for are we defeating the purpose?

    That was the point of our discussion, you should not rely on javascript alone to validate user input.

    # August 15, 2009 at 6:01 am

    It does use php aswell, when you click the submit button ajax and jquery check and then send to php file – but if the user has jquery disabled nothing will happen when the submit button is clicked. So is this a good method and its their fault they have it disabled, if they want to use it they must enable it, or is this not a good thing to do?

    # August 15, 2009 at 11:36 am

    Put it this way, if a website told me I had to enable javascript, I would leave that site immediately.

    # August 15, 2009 at 12:17 pm

    ok, thanks for all of your help apostrophe, the second link you gave was exactly what i was looking for and it has worked perfectly. you can maek this convo as solved.

    Many THanks
    Chris

    # December 25, 2009 at 3:29 pm

    Php Forms http://phpforms.net/
    Create any kind of web form in several mouse clicks! Generate a code that can be easily copied and pasted to any web page

Viewing 15 posts - 1 through 15 (of 15 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".