Results 1 to 2 of 2

Thread: Help Passing Values to Applet.

  1. #1

    Thread Starter
    Lively Member ghettohacker's Avatar
    Join Date
    Dec 2005
    Posts
    81

    Help Passing Values to Applet.

    i've set up a java applet, PIRC, on my website to allow users to log into my irc server from website. i can't figure out how to pass values from a log in page to the applet for to allow users to change their nick before they connect.

    access to the applet is from http://hybrixraven.com/ghettohacker/ixl2_web/chat.htm
    which is where i'd like to create a form to pass a nickname to the applet.
    the param i must pass a nick to is:
    HTML Code:
    <param name="nick" value="Anon???">
    a simple way to pass info from a form to the applet would be best. if anyone can help, or give me a tip it would be greatly appriciated

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Help Passing Values to Applet.

    You will need a small server-side script such as PHP to accept the value posted from the form, if you the action parameter of your form points to the chat page then:

    HTML Code:
    <param name="nick" value="<?=$_POST['nick']?>">

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