Jump to content

Archived

This topic is now archived and is closed to further replies.

zodehala

link instead of button

Recommended Posts

like you see following when you clicked button "connection.php" pages is loaded (we make this by button)


[code]<form id="form1" name="form1" method="post" action="connection.php">
  <label>
  <input type="submit" name="Submit" value="value1"  class="Button"/>
  </label>
</form>[/code]

suppose that there is a link is  called "xxx"  "connection.php" page will be loaded when i cliked link is called "xxx" 

how can i do it ?

[code]<a href="" tabindex="1" title="loading" accesskey="1" target="_blank">xxx</a>[/code]

Share this post


Link to post
Share on other sites
You could use a javascript onClick() event to submit the form.

Something like...

[code]
<a href="javascript:void(0)" onclick="document.forms.formName.submit()">xxx</a>
[/code]

Regards
Rich

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.