SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Wizard jumpthru's Avatar
    Join Date
    Apr 2000
    Location
    Los Angeles, California
    Posts
    1,008
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    submit with link?

    is it possible to submit a form with a link, instead of a button? i thought I had read somewhere that its possible, but cant find any information on it. anyone know?

    thanks,
    nate

  2. #2
    SitePoint Wizard
    Join Date
    Mar 2002
    Location
    Bristol, UK
    Posts
    2,240
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, this is possible. I think the code is:

    Code:
    <form name="myform">
    <!-- Form Contents -->
    <a href="#" onclick="JavaScript: document.forms['myform'].submit">Submit</a>
    </form>
    I'm not sure if this is the exact code because I'm just typing it from memory. Reply here if you have any problems.

    -Sam
    Sam Hastings

  3. #3
    SitePoint Wizard jumpthru's Avatar
    Join Date
    Apr 2000
    Location
    Los Angeles, California
    Posts
    1,008
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks...

    its actually

    PHP Code:
    submit(document.forms['myform']) 


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
  •