Results 1 to 6 of 6

Thread: How can I do index.htm?param1=Guy

  1. #1
    Guest
    How can I do index.htm?param1=Guy

    I want to pass a paramter to my webpage but I don't know how to do this, the parameter must stay hidden on the page it may not be passed into a textbox

    can somebody help me with this ?

    Guy

  2. #2
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606
    why can u put it in a hidden text box and use POST as method?

  3. #3
    Guest
    a hidden text box is fine, but how do i use it ?
    can you give me some code please

    Guy

  4. #4
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606
    you use it exactly like a normal one ,

    <input type="hidden" name="txtHidden">

  5. #5
    Guest
    I think he means how does he recieve it... it can't be done in plain HTML..... it has to be PHP, ASP, Perl, etc... I think it can also be done in JavaScript.

  6. #6
    Guest

    Smile

    I found out how to do it with Javascript
    here is the code which returns everthing after the '?'

    var text = window.location.search.substring(1);


    This solves my problem

    Guy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width