Hellow Dears,

I want to submit the form with <a> tag the page is sbumitted but I can't pass parameter along with the <a> tag please suggest how can i do that.
plz suggest as earliest

Recommended Answers

I am not sure i understand correctly but are u looking to do something like this:

<a href='/somepage.asp?name=<%=session("username")%>'
Jump to Post

All 2 Replies

I am not sure i understand correctly but are u looking to do something like this:

<a href='/somepage.asp?name=<%=session("username")%>'

use javascript.

<a style="cursor:pointer;" onclick="document.forms['formname'].submit();">test</a>

And then you can always change the form action or store some data in hidden form field to send to the server.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.