Link to home
Start Free TrialLog in
Avatar of macuser777
macuser777Flag for United Kingdom of Great Britain and Northern Ireland

asked on

Change a submit button to a text link

Hi,

I'd like to change the submit button 'order' to a simple text link please.



<table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td width="50%"><b>[[domain]].[[ext]]</b></td>
      <td width="25%">[[price]]</td>
      <td width="25%">
        <div align="right">
        
<form ACTION="http://www.anrdoezrs.net/interactive"method=get>
<input name="DomainName" type="hidden" class="search" value='[[user-domain]]'/>
<input type="hidden" name="siteid" value="4798">
<input name="submit"  type="submit"  tabindex="2"  value="order">
<input type="hidden" name="pid" value="1607964">
<input type="hidden" name="url" value="https://secure.registerapi.com/DDS/controller.php">
<input type="hidden" name="aid" value="5463237">
</FORM>

<img src="http://www.ftjcfx.com/image-1607964-5463237" width="1" height="1" border="0"></div></td>
    </tr>
  </table>
Avatar of flow79
flow79
Flag of United States of America image

<a href="#" onClick="document.form[0].submit;">order</a>
SOLUTION
Avatar of flow79
flow79
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of macuser777

ASKER

OK - I know i'll be doing something sill here - but this doesn't work

<table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td width="50%"><b>[[domain]].[[ext]]</b></td>
      <td width="25%">[[price]]</td>
      <td width="25%"  valign="middle">
        <div align="right">
        
<form ACTION="http://www.anrdoezrs.net/interactive"method=get name="form1">
<input name="DomainName" type="hidden" class="search" value='[[user-domain]]'/>
<input type="hidden" name="siteid" value="4798">
<input type="hidden" name="pid" value="1607964">
<input type="hidden" name="url" value="https://secure.registerapi.com/DDS/controller.php">
<input type="hidden" name="aid" value="5463237">
<a href="#" onClick="document.form1.submit;">order</a>
</FORM>

<img src="http://www.ftjcfx.com/image-1607964-5463237" width="1" height="1" border="0"></div></td>
    </tr>
  </table>
ASKER CERTIFIED SOLUTION
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
...no luck with that
Avatar of Brandy Vaughn
Brandy Vaughn

It looks like you're just missing the parenthesis after submit..

<a href="#" onClick="document.form1.submit();">order</a>
it works for me, make sure your view page is not loaded from cache? Try clear the browser cache and try again...
hmmm...yes. Sorry I'm having a form clash.

It works here

http://playmac.com/submit.htm

but here it doesn't and seems to have disbaled the other forms.

http://playmac.com/feedback.htm

[please don't post any urls from the destination site here]

.........mmmmmm
well...I guess the q got answered. I'll have to figure out what's up with the page tomorrow.

thanks.
All ok now - the problem was that there a repeat tag and I just had to move the form code out of it.

Thanks, again.