total noob, needs help in form elements

i want to make a simple page, where we input a number, and the button should just append that number to a defined link.

how do i append my input “filenum” at the end of “code=” in form action.
sorry i am a total noob. any help is highly appreciated.

below is the code so far.

File No.:

You need to add a name element to you form method, that will enable you to easily reference it with javascript.

[php][/php]

Then you have many different wants you can do this…

  1. Call a javascript function
  2. Do it on the onclick event
  3. Use JQuery

To reference the action element with javascript you will use this…

[php]document.myform.action [/php]

To reference your input field you will use this…

[php]document.myform.FileNum[/php]

To add an onclick event you just do this.

[php][/php]

Anyway, I have no clue what I’m talking about and I didn’t test this. I’m sure someone will correct me. Or you can test it and correct it.

Sponsor our Newsletter | Privacy Policy | Terms of Service