#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Posts
    5
    Rep Power
    0
    hi,

    This is the code i am having the htm file

    yen.htm
    -----
    <form name=one action=yen.php3>
    <input type=text name=a>
    <input type=text name=b>
    <input type=button name=c value=click>
    </form>


    when i am clicking this button the values should be passed to the yen.php3 file.

    somebody says we can pass that using querystring. how it will be .


    please help me ..
    thank u..
  2. #2
  3. .Net Developer
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    London
    Posts
    987
    Rep Power
    15
    jopi,
    you can do that but why you need to do with out a submit button.Any way you will have to submit your form otherwise you can't pass the information to your script page.

    see you can do with java script..try some thing like following...

    <html>
    <head>
    <SCRIPT LANGUAGE="JavaScript">
    function submit(){
    document.formname.submit();
    //check it out wether above syntax is correct or not..

    }
    </SCRIPT>
    </head>
    <body>

    <form name="formname" action="yen.php3">
    <input type="text" name="a">
    <input type="text" name=b>
    <input type="button" name="c" value="click" onClick="submit();">
    </form>
    </body>
    </html>

    Doing form submition with java script is not a good idea..What i would suggest is that use Submit button to submit your form...

    ------------------
    SR -
    webshiju.com

    "The fear of the LORD is the beginning of knowledge..."

    [This message has been edited by Shiju Rajan (edited August 03, 2000).]
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    Pune, Maharashtra, India
    Posts
    86
    Rep Power
    14
    You have to nothing bu just submit the form in the onClick event of the button u r including i.e use this code to make button:
    <input type=button name=c value=click onClick="one.submit(true);">
    submits the form.
    Then Best Of luck

Similar Threads

  1. Replies: 7
    Last Post: February 16th, 2004, 02:55 PM
  2. Enable form on radio button select
    By (sic)master in forum HTML Programming
    Replies: 2
    Last Post: February 8th, 2004, 04:19 PM
  3. Pass a varaible to another page (parent)
    By sanj in forum HTML Programming
    Replies: 2
    Last Post: February 6th, 2004, 12:59 PM
  4. Validate a form using same page as form
    By annihilate in forum PHP Development
    Replies: 20
    Last Post: February 4th, 2004, 08:56 PM
  5. submit form w/o pressing a button
    By alzheimer in forum HTML Programming
    Replies: 2
    Last Post: February 1st, 2004, 07:53 AM

IMN logo majestic logo threadwatch logo seochat tools logo