in reply to Re^2: how can i take value in TextBox and pass to a URL?
in thread how can i take value in TextBox and pass to a URL?

You want the value in the text box transmitted when EITHER button is clicked, not just the first? I guess I misunderstood the problem.

Here's another trick you can use: just have one form, but use two submit buttons:

<input type="submit" name="submit" value="ButtonA"><br> <input type="submit" name="submit" value="ButtonB"><br>

Then your CGI script can check the value of the submit button, and branch accordingly. In your case, I suppose you'd simply do a redirect to the URL you want.

Replies are listed 'Best First'.
Re^4: how can i take value in TextBox and pass to a URL?
by blackcode (Novice) on Dec 11, 2009 at 19:22 UTC

    Yes correct. TEXTBOX value should be forwarded to different URLs depending on

    1. Which button is clicked (Button-A or Button-B)

    or if user hits {ENTER} it should always pass the {TEXTBOX VALUE} to the URL assigned to Button-A. if no input is available and hit {ENTER} or clicked on either button, nothing should happen!

    URL for each button will be like

    Button-A: site.com/index.php?script={TEXTBOX VALUE}&first?=method

    Button-B: site2.com/index.php?script={TEXTBOX VALUE}&other?=ways

    Thank you all for your suggestions and great helps. I am not into programming side, therefore developing even a simple script as this is tough job. It shall be a great help if a server side cgi script also could be provided! Thanks alot for the help!

Re^4: how can i take value in TextBox and pass to a URL?
by blackcode (Novice) on Dec 15, 2009 at 07:54 UTC
    any help friends?? i v no clue where to start where to end