Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form using links as input items

Status
Not open for further replies.

rmagan

Programmer
Jun 3, 2003
35
US
I have a table that has only links as items. When the user hits the link, I want the form to submit and pass the value of the link to the stored procedure. Is this possible?

<HTML>
<FORM name=&quot;process_student_schedule2&quot; action=&quot;stars3.star_portal.process_student_schedule&quot; method=&quot;post&quot;>
<TABLE>
<TR>
<TD align=&quot;center&quot; nowrap><a href=&quot;javascript:void(document.post_grdbk.submit())&quot;>Submit Me - Value1</a></TD>
</TR>
<TR>
<TD align=&quot;center&quot; nowrap><a href=&quot;javascript:void(document.post_grdbk.submit())&quot;>Submit Me - Value2</a></TD>
</TR>
<TR>
<TD align=&quot;center&quot; nowrap><a href=&quot;javascript:void(document.post_grdbk.submit())&quot;>Submit Me - Value3</a></TD>
</TR>
</TABLE>
</FORM>
</HTML>
 
no: a form will only transmit data from form elements.

what you can do is have the links change the value of a hidden form field, then submit.



=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); }
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top