![]() |
#1 |
![]() Join Date: Mar 2008
Posts: 5
|
![]() hello.
i am new on dreamweaver mx and i am trying to do this.i have two buttons in a form.and i have a textfield.in the form i have get and it locates the same asp file (example.asp).on the first button a have a value (dog) and second (cat).when i push first button my link change from example.asp to /example.asp?Submit=dog and if i push the other one it goes to /example.asp?Submit=cat.i think this is working ok.how could i use the textfield to display the word dog or cat when i am at the first or second place? please help me.thank you *there is no java.just single values on each button. |
![]() |
![]() |
![]() |
#2 | |
![]() Join Date: Mar 2008
Posts: 5
|
![]() Quote:
thank you all. |
|
![]() |
![]() |
![]() |
#3 | |
![]() Join Date: Mar 2008
Posts: 5
|
![]() Quote:
please help.butto |
|
![]() |
![]() |
![]() |
#4 |
![]() Join Date: Jan 2006
Location: Toronto-Canada
Posts: 444
|
![]() ok. what I would do is to use a pull down menu, but here we go:
Select * From tblCatsandDogs Where cats = "cat" AND dogs = "dog" Post your code, I'll give you a hand. Or let me know if you already figured it out.
__________________
J. DW | FW | HTML | CSS | ASP | some PHP | Windows | Ubuntu |
![]() |
![]() |
![]() |
#5 |
![]() Join Date: Mar 2008
Posts: 5
|
![]() I do not know how to write down the code.hope this is how to do it.i will put all code
<<A href="mailto:%@LANGUAGE="VBSCRIPT">%@LANGUAGE="VBS CRIPT" CODEPAGE="1253"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=windows-1253"> <style type="text/css"> <!-- body { background-color: #000000; } body,td,th { color: #FFFFFF; } .style3 {font-size: 12px} .style4 {font-size: 12} a:link { color: #FFFFFF; } a:visited { color: #F7F7F7; } a:hover { color: #F7F7F7; } a:active { color: #F7F7F7; } --> </style> <link href="mybutton.css" rel="stylesheet" type="text/css"> </head> <body> <table width="800" height="560" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="100"><table width="800" height="400" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="160" colspan="5" rowspan="2"> </td> <td width="100" height="80"> </td> <td width="100" height="80"> </td> <td width="100" height="80"> </td> </tr> <tr> <td height="80" colspan="3"><div align="center"></div></td> </tr> <tr> <td colspan="2" rowspan="4" bgcolor="#000033"><table width="100" height="350" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="100" height="400"><form name="form1" method="get" action="index2.asp"> <table width="100" height="240" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="40"><div align="center"><span class="mybutton"> <input name="Submit" type="submit" class="mybutton" value="Dog"> <input name="Submit2" type="submit" class="mybutton" value="Cat"> </span></div></td> </tr> <tr> <td><div align="center"><span class="mybutton"> </span></div></td> </tr> </table> </form></td> </tr> </table> <p> </p></td> <td width="100" height="100"> </td> <td height="100" colspan="2"><form name="form2" method="post" action=""> <input type="text" name="textfield"> </form></td> <td width="100" height="100"> </td> <td width="100" height="100"> </td> <td width="100" height="100"> </td> </tr> <tr> <td width="100" height="100"> </td> <td width="100" height="100"> </td> <td width="100" height="100"> </td> <td width="100" height="100"> </td> <td width="100" height="100"> </td> <td width="100" height="100"> </td> </tr> <tr> <td width="100" height="100"> </td> <td width="100" height="100"> </td> <td width="100" height="100"> </td> <td width="100" height="100"> </td> <td width="100" height="100"> </td> <td width="100" height="100"> </td> </tr> <tr> <td width="100" height="100">mytest</td> <td width="100" height="100"> </td> <td width="100" height="100"> </td> <td width="100" height="100"> </td> <td width="100" height="100"> </td> <td width="100" height="100"> </td> </tr> </table></td> </tr> </table> <p class="style3"> </p> </body> </html> as you see there is no database yet.i only need when i push the button the value to be displayed in the textfield.if that is possible. thanks anyway. |
![]() |
![]() |
![]() |
#6 |
![]() Join Date: Jan 2006
Location: Toronto-Canada
Posts: 444
|
![]() what you want can be done with javascript but I do not write javascript.
![]()
__________________
J. DW | FW | HTML | CSS | ASP | some PHP | Windows | Ubuntu |
![]() |
![]() |
![]() |
#7 |
![]() Join Date: Mar 2008
Posts: 5
|
![]() nobody can do everything.we are not god.
![]() |
![]() |
![]() |
![]() |
#8 | |
Administrator
![]() Join Date: Dec 2003
Posts: 9,730
|
![]() Quote:
![]()
__________________
Please read this before asking for help. - New Tutorial: Define Your Site ![]() |
|
![]() |
![]() |
![]() |
#9 | |
![]() Join Date: Dec 2007
Posts: 379
|
![]() Quote:
PHP Code:
Cheers
__________________
Amateurs ... Built the ark. Professionals ... Built the Titanic. specificity [sound like spe-sifis-ity] |
|
![]() |
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|