SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict chartahir's Avatar
    Join Date
    Oct 2006
    Location
    Karachi, Pakistan
    Posts
    253
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Submit form on an event ?

    I've started a count down timer and i want to submit the form when the counter reaches zero.

    How can i do that ?

    Like=> document.formname.submit();

    or something else.
    chartahir

  2. #2
    Guru Meditation Error gnarly's Avatar
    Join Date
    Dec 2003
    Location
    Cheltenham, United Kingdom
    Posts
    692
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It'd help to see your code to be honest.

    If you have a loop that runs each time the counter decrements, you could put something like this in there:

    Code:
    if (counter == 1) { document.formname.submit(); }
    Last edited by gnarly; May 15, 2007 at 04:50. Reason: grammer and speeeling
    Olly Hodgson
    thinkdrastic.net

  3. #3
    SitePoint Addict chartahir's Avatar
    Join Date
    Oct 2006
    Location
    Karachi, Pakistan
    Posts
    253
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok i've done it, but when the user submits the form manually, i 've to check for $_Post['submit'], which is the submit button, but what if i do your way,then the $_Post['submit'] doesn't work.
    chartahir


Bookmarks

Posting Permissions

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