Click to See Complete Forum and Search --> : adding values to submit in javascript


bender
01-08-2003, 08:12 AM
Is there someone who can tell me how to ad a value to a submit button that you make in javascript


<a href="javascript:document.form.submit();">submit</a>

thanks in advance

and best wishes

greetingz

pyro
01-08-2003, 08:22 AM
I don't think I'm understanding what it is you need. Maybe if you explain what it is that you need to do, it will be easier to see what you want.

bender
01-08-2003, 08:47 AM
I'll try to explain.

Normally you create a form with different input fields and then send the values after pushing the submit button.

Now I've replaced the submit button with a href ---> <a href="javascript:document.form.submit()"></a>

--> this works.

But now I would like to pass a value with this code ---> <a href="javascript:document.form.submit(value)"></a>

The problem is: how can I retrieve this value in asp?

Thanks for your effort.

chuskin
01-08-2003, 09:46 AM
It's the same.

You are sending the form in the <a href="javascript:document.form.submit()"></a> , so in next page (asp, jsp...) you can take the values of input files. You don't need <a href="javascript:document.form.submit(value)"></a>