PDA

View Full Version : Hi I'm a newb and need some help on buttons


THROIG
05-14-2003, 11:06 PM
hey, I was wondering how you can attach multiple actions to one button. WHat I want to do is to have a form email me and also contiune to a next page, I have the emailing part but how would you do the other part?

thanks, THROIG

oracleguy
05-15-2003, 12:47 AM
Well if you are using a server side language to email the form information then you'd just add the appropriate command to redirect the page.

If you are using the mailto: in the action attribute of the form, you could use javascript and do a location.href="mypage.xxx"

Nightfire
05-15-2003, 12:48 AM
You should really read here before you start another topic :) http://www.codingforums.com/postguide.htm
<form action="mailto:blah@de.blah" method="post">
<input type="text" name="name"> Name<br />
<textarea cols="30" rows="5" name="msg"></textarea><br />
<input type="submit" value="Email me!" onclick="document.location='nextpage.html'; />
</form>

off the top of my head, ain't used a form like that for about 4 years

THROIG
05-15-2003, 12:55 AM
:o Sorrydidnt see that one, and thanks you guys/or girls

THROIG

THROIG
05-15-2003, 01:11 AM
Accually that didnt exactly work can you tell me why/how to fix it,

zoobie
05-15-2003, 01:36 AM
It needs to be onclick="document.location='INDEX.html';"> :D

THROIG
05-15-2003, 02:13 AM
but it aint .html

THROIG
05-15-2003, 02:30 AM
Does it matter that I am on a macintosh??
Heres the full code
<html>
<head>
<title>YEP,THIS IS THE TITLE</title>
</head>
<body text="#000000" bgcolor="#FFFFFF">

<table BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH="570" >
<tr ALIGN=LEFT VALIGN=TOP>
<td ALIGN=LEFT VALIGN=TOP WIDTH="121" HEIGHT="285">
<FORM METHOD="POST" ACTION="mailto:MyEmailAddress">
--YOu dont need the images, right
<img SRC="nbmside.jpg" BORDER=0 height=285 width=121 align=BOTTOM></td>
<td ALIGN=LEFT VALIGN=TOP WIDTH="449" HEIGHT="285"><img SRC="nbm1top.jpg" BORDER=0 height=119 width=449 align=BOTTOM>
<center><font size=+2>Please Login</font></center>
<table BORDER=0 WIDTH="95%" >
<tr>
<td WIDTH="25%">Username:</td>
<td WIDTH="75%"><input TYPE="TEXT" NAME="username" SIZE="40"></td>
</tr>
<tr>
<td WIDTH="25%">Password:</td>
<td WIDTH="75%"><input TYPE="PASSWORD" NAME="password" SIZE="40"></td>
</tr>
<tr>
<td WIDTH="25%">Destination:</td>
<td WIDTH="75%"><input TYPE="TEXT" NAME="url" SIZE="40" VALUE="THIS IS NOT NEEDED TO GO ANYWHERE"></td> I DONT NEED THIS FIELD TO DO ANYTHING
</tr>
<tr>
<td><!---- Hidden field to identify forward/reverse proxy path ------><input TYPE="hidden" NAME="proxypath" VALUE="forwards"></td>I DONT KNOW WHAT THIS DOES
</tr>
</table>
<center>
<p><INPUT TYPE="submit" VALUE="Login" onClick="verify()"--I DONT THINK I NEED THIS>
<input TYPE="RESET" NAME="Reset" VALUE="Reset"></center>
</td>
</tr>
</table>
</form>
</body>
</html>

This is without any of the new location link code, plz send it back with the code on it.

I thank you guys for helpin
THROIG

Mhtml
05-15-2003, 02:58 AM
Hrmm...IMO it'd seem you don't know very much about html so I suggesst having a look at www.w3schools.com/html , that is a good tutorial and W3 Schools is recommended by most everyone here.

THROIG
05-15-2003, 03:18 AM
Thanks

zoobie
05-15-2003, 06:08 AM
Well, just saying it's not a .html page doesn't really help much. Whatever...Just change the extension to whatever page it is.

Example:

INDEX.htm
INDEX.php
INDEX.asp

...and pay attention to those quotation marks. They're verrrrrrrrrrrrrrrrrrrry important. :cool: