0
<FORM id=loginForm name=loginForm method=post 
          action="http://www.example.com/login.php">
<INPUT name=username>
<INPUT name=password>
<INPUT type=submit value="Log In" name=action_login>
</FORM>

Is there any way of changing name=action_login to name=action_signup and post username and password to http://www.example.com/signup.php

in the server site it has name=action_login but I would like to change this on the client side and not touch the server site.

stuartd
  • 70,509
  • 14
  • 132
  • 163
user987642
  • 1
  • 1
  • 5
  • you can change it with javascript ps you should really follow the proper markup, i.e. all attributes should be quotes in double quotes and `input` should be self-closed – scibuff Mar 16 '12 at 17:15
  • 1
    Why does this have "cross site scripting" written all over it? I'm trying to think of a use case for doing this but I can't. – NotMe Mar 16 '12 at 17:21
  • You have this tagged as C# (and WinForms, which I removed). Are you using a server-side technology -- WebForms or MVC or something else? You need to provide more information. – David Hoerster Mar 16 '12 at 17:25
  • [scibuff] - can you please give a little example code [chris-lively] - is no cross site scripting. [david-hoerster] - basic im verry new to this c# programming, i know it's c# sharp im using visual studio it says windows form application under c# language. thats what I have choose. – user987642 Mar 16 '12 at 21:09

1 Answers1

0

If you are using FireFox, get the Firebug addon which lets you modify markup in real-time.

Chrome has a built-in similar tool.

Right click -> Inspect Element

Saeb Amini
  • 23,054
  • 9
  • 78
  • 76