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

    Join Date
    Nov 2000
    Posts
    1
    Rep Power
    0
    Hi everyone ...I hope you all can help me.

    Actually I want pass several hidden variable over to another function program by using javascript.
    my coding look like this:

    function parse(){
    var val=document.theform.result.value;
    var url="http://path to.page/page.php?Val="+val;
    self.location.href=url

    <form name=theform action="new_page.php">
    <input type=button name=flowbutton value=select onclick="parse()">

    <input type=hidden name=result value=count>
    *have few hidden varible.
    #########################################
    actually this coding can work. However I want to pass several hidden variable over to another page and I can't pass over. This is because my button type is equal to button and not submit. If I use button type equal to submit, my javscript can't work properly.

    so please help me. Can I use button type =submit so that I can pass all the variable over to other page and also the javascript work as well?

    thanks

    ------------------
    Wendy
  2. #2
  3. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2000
    Location
    Salt Lake City
    Posts
    36
    Rep Power
    15
    Hi,
    What exactly is keeping u from using the submit method? I think u can use the submit button & in the form tag use "onSubmit" to call ur script function.
    This is supposed to work, if it doesn't plz let me know.
    Bye.
    Tintin

Similar Threads

  1. passing php variable to javascript
    By reuben_roa in forum JavaScript Development
    Replies: 6
    Last Post: December 9th, 2003, 02:29 AM
  2. javascript with href passing a variable
    By tomkocz in forum JavaScript Development
    Replies: 1
    Last Post: November 19th, 2003, 08:29 PM
  3. passing javascript variable to function
    By bramsey in forum JavaScript Development
    Replies: 6
    Last Post: November 10th, 2003, 07:52 AM
  4. Launch URL and assign value to variable therein
    By Dangerzone in forum HTML Programming
    Replies: 2
    Last Post: August 2nd, 2003, 06:17 PM
  5. Passing a variable into a script via URL?
    By fantom in forum PHP Development
    Replies: 5
    Last Post: February 13th, 2003, 01:05 AM

IMN logo majestic logo threadwatch logo seochat tools logo