Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Please HELP

  1. #1
    New to the CF scene
    Join Date
    Aug 2007
    Thanked 0 Times in 0 Posts

    Please HELP

    I need a way to check when an inut on a html form is not empty and have it create a variable that PHP can see on the same page BEFORE the form is submitted or have an extra hidden field to be created whenever postcode is not empty. Whichever is easier. I tried using PHP $_REQUEST but it doesnt seem to work until after the form is submitted so I think javascript might have a solution?

    <input name="postcode" type="text" style="width:85px; font-family:tahoma; font-size:11px " size="12" select="select" />

  • #2
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Florida, USA
    Thanked 406 Times in 398 Posts
    You'll have to use JavaScript to check it before the form is submitted. PHP won't be able to check it without submitting the form.


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts