Jump to content


link instead of button

  • Please log in to reply
1 reply to this topic

#1 zodehala

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 05 September 2006 - 12:47 PM

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

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

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 ?

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

#2 HuggieBear

  • Members
  • PipPipPip
  • Advanced Member
  • 1,899 posts
  • LocationEngland, UK

Posted 05 September 2006 - 12:51 PM

You could use a javascript onClick() event to submit the form.

Something like...

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

Advice to MySQL users: Get phpMyAdmin and test your queries work there first, take half the hassle out of diagnosis, also check the reserved words list.

Links: PHP Docs :: RegEx's :: MySQL :: DevGuru :: w3schools

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users