Results 1 to 5 of 5

Thread: More form junk...

  1. #1
    Registered
    Join Date
    Aug 2003
    Location
    Columbus, Ohio
    Posts
    122

    More form junk...

    Can I use a submit button in an HTML form to run PHP code on the current page without reloading the page completely after hitting submit?

    Example...I have the following HTML...


    <input type="text" name="excess1">
    <input type="submit" name="verify1" value="Verify ->">
    <input type="text" name="model1">

    The purpose here is to verify that the information entered in the "excess1" text box is correct. When the info is entered and the "verify1" button is hit, I want a quick lookup to my db to be done and the appropriate info to populate the "model1" text box. The problem is that I have 9 other sets just like this that is going to be part of the same form for submittal. Can the form be handles without reloading the entire page?

    E

  2. #2
    Registered Mike's Avatar
    Join Date
    May 2003
    Location
    UK
    Posts
    2,755
    Frames is the only way I can think of, although I'm sure there will be a better alternative.
    Don't you just love free internet games ?

  3. #3
    Registered
    Join Date
    Aug 2003
    Location
    Columbus, Ohio
    Posts
    122
    You know the scripts that I stick in there will STILL have to query the database so reloading the page is inevitible. See, after I stick in the 10 rows of information and it is verified, I have another submit button that will take all "excess" entries and update the corresponding records. I guess it's an HTML form thing that I need to look into rather than php...

  4. #4
    Administrator Chris's Avatar
    Join Date
    Feb 2003
    Location
    East Lansing, MI USA
    Posts
    7,055
    php is server side, you can't process it without access the server.

    Javascript can do form verification on the client side and is often used for just that purpose. If you search on Google for "javascript form verification" you'll probably find loads of info. Or if you have a good javascript book there is probably an example in it.
    Chris Beasley - My Guide to Building a Successful Website[size=1]
    Content Sites: ABCDFGHIJKLMNOP|Forums: ABCD EF|Ecommerce: Swords Knives

  5. #5
    Registered
    Join Date
    Aug 2003
    Location
    Columbus, Ohio
    Posts
    122
    cool...thanx...

Similar Threads

  1. Monetizing Junk traffic
    By cinemaeye in forum Advertising & Affiliate Programs
    Replies: 17
    Last Post: 03-08-2008, 12:22 AM
  2. Form in Publsiher 2003
    By jazzy12 in forum HTML, CSS, Layout, and Design
    Replies: 6
    Last Post: 04-30-2004, 11:37 AM
  3. Simple web form help!
    By bishop9144 in forum HTML, CSS, Layout, and Design
    Replies: 1
    Last Post: 01-09-2004, 06:13 AM
  4. Form positioning
    By lo0ol in forum HTML, CSS, Layout, and Design
    Replies: 7
    Last Post: 12-06-2003, 10:50 AM
  5. Variable value for form text...
    By Stevens in forum Website Programming & Databases
    Replies: 4
    Last Post: 10-15-2003, 02:58 PM

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
  •