View previous topic :: View next topic |
Author |
Message |
Darkness1230 I post too much
Reputation: 0
Joined: 23 Nov 2006 Posts: 2816
|
Posted: Mon May 26, 2008 3:21 pm Post subject: {help please}Macromedia DreamWeaver |
|
|
This may sound silly but, I'm having trouble with making a back to top page button. I'm making a website for an assignment. So i need to know how to make a back to top button.
Thanks for helping!
|
|
Back to top |
|
 |
HalfPrime Grandmaster Cheater
Reputation: 0
Joined: 12 Mar 2008 Posts: 532 Location: Right there...On your monitor
|
Posted: Mon May 26, 2008 3:28 pm Post subject: |
|
|
You want to look up anchors.
Code: | <a name="TopOfThePage" id="TopOfThePage"></a> |
Put that at the top of the page
Code: | <a href="#TopOfThePage">Go to the top</a> |
_________________
|
|
Back to top |
|
 |
Darkness1230 I post too much
Reputation: 0
Joined: 23 Nov 2006 Posts: 2816
|
Posted: Mon May 26, 2008 3:38 pm Post subject: |
|
|
Thank you very much..
To not spam a lot of topics....
Can i ask for more answers?
Next i was wondering how you make a text form for email. So when you click it, you automaticly open outlook and email. As in for contact information page.
THANKS AGAIN!
|
|
Back to top |
|
 |
HalfPrime Grandmaster Cheater
Reputation: 0
Joined: 12 Mar 2008 Posts: 532 Location: Right there...On your monitor
|
Posted: Mon May 26, 2008 3:43 pm Post subject: |
|
|
_________________
|
|
Back to top |
|
 |
Darkness1230 I post too much
Reputation: 0
Joined: 23 Nov 2006 Posts: 2816
|
Posted: Mon May 26, 2008 3:47 pm Post subject: |
|
|
Thanks again!
I very appreciate you taking your time to help me out. If i have any other questions later on, i'll post them here. Thanks again!
|
|
Back to top |
|
 |
thephoneguy Grandmaster Cheater
Reputation: 1
Joined: 17 Mar 2007 Posts: 873
|
Posted: Tue May 27, 2008 4:01 am Post subject: |
|
|
add me on msn. [email protected]
that way of contact is way outdated lemme give you a little php code that makes it way better .
Save as contact.php
Code: |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<form method="post" action="sendmail.php">
<?php
$ipi = getenv("REMOTE_ADDR");
$httprefi = getenv ("HTTP_REFERER");
$httpagenti = getenv ("HTTP_USER_AGENT");
?>
<input type="hidden" name="ip" value="<?php echo $ipi ?>" />
<input type="hidden" name="httpref" value="<?php echo $httprefi ?>" />
<input type="hidden" name="httpagent" value="<?php echo $httpagenti ?>" />
Your Name: <br />
<input type="text" name="visitor" size="35" />
<br />
Your Email:<br />
<input type="text" name="visitormail" size="35" class="style17" />
<br /> <br />
<br />
Attention:<br />
<select name="attn" size="1">
<option value=" Sales n Billing ">Sales</option>
<option value=" Sales n Billing ">Billing </option>
<option value=" General Support ">General Support </option>
<option value=" Technical Support ">Technical Support </option>
<option value=" Webmaster ">Webmaster </option>
</select>
<br /><br />
Mail Message:
</span>
<br />
<textarea name="notes" rows="4" cols="40"></textarea>
<br />
<input type="submit" value="Send Mail" />
<br />
</form> </td>
</tr>
</table>
</body>
</html>
|
save as sendmail.php
Code: |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Sendemail Script</title>
</head>
<body>
<?php
$ip = $_POST['ip'];
$httpref = $_POST['httpref'];
$httpagent = $_POST['httpagent'];
$visitor = $_POST['visitor'];
$visitormail = $_POST['visitormail'];
$notes = $_POST['notes'];
$attn = $_POST['attn'];
if (eregi('http:', $notes)) {
die ("Do NOT try that! ! ");
}
if(!$visitormail == "" && (!strstr($visitormail,"@") || !strstr($visitormail,".")))
{
echo "<h2>Use Back - Enter valid e-mail</h2>\n";
$badinput = "<h2>Feedback was NOT submitted</h2>\n";
echo $badinput;
die ("Go back! ! ");
}
if(empty($visitor) || empty($visitormail) || empty($notes )) {
echo "<h2>Use Back - fill in all fields</h2>\n";
die ("Use back! ! ");
}
$todayis = date("l, F j, Y, g:i a") ;
$attn = $attn ;
$subject = $attn;
$notes = stripcslashes($notes);
$message = " $todayis [EST] \n
Attention: $attn \n
Message: $notes \n
From: $visitor ($visitormail)\n
Additional Info : IP = $ip \n
Browser Info: $httpagent \n
Referral : $httpref \n
";
$from = "From: $visitormail\r\n";
//mail("YOUR EMAIL", $subject, $message, $from);
?>
<p align="center">
Date: <?php echo $todayis ?>
<br />
Thank You : <?php echo $visitor ?> ( <?php echo $visitormail ?> )
<br />
Attention: <?php echo $attn ?>
<br />
Message:<br />
<?php $notesout = str_replace("z\r", "<br/>", $notes);
echo $notesout; ?>
<br />
<br /><br />
//<a href="YOUR WEBSITE"> Home </a>
</p>
</body>
</html>
|
i have commented out the code you need to change
_________________
If you see me posting referring to an earlier conversation 9/10 times it was in the chatbox at baby .
 |
|
Back to top |
|
 |
SXGuy I post too much
Reputation: 0
Joined: 19 Sep 2006 Posts: 3551
|
Posted: Tue May 27, 2008 4:54 am Post subject: |
|
|
[quote="HalfPrime"][code]<a href="mailto:[email protected]">mail</a>[/code][/quote]
If you want to add a subject line to it just add a small mod.
<a href="mailto:[email protected]" subject:CEF Rules>mail</a>
Im sure thats it, from what i can remember, havent written html for years!
|
|
Back to top |
|
 |
Overload Master Cheater
Reputation: 0
Joined: 08 Feb 2008 Posts: 293
|
Posted: Sat May 31, 2008 6:32 pm Post subject: |
|
|
ThePhoneGuy wrote: | add me on msn. [email protected]
that way of contact is way outdated lemme give you a little php code that makes it way better .
Save as contact.php
Code: |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<form method="post" action="sendmail.php">
<?php
$ipi = getenv("REMOTE_ADDR");
$httprefi = getenv ("HTTP_REFERER");
$httpagenti = getenv ("HTTP_USER_AGENT");
?>
<input type="hidden" name="ip" value="<?php echo $ipi ?>" />
<input type="hidden" name="httpref" value="<?php echo $httprefi ?>" />
<input type="hidden" name="httpagent" value="<?php echo $httpagenti ?>" />
Your Name: <br />
<input type="text" name="visitor" size="35" />
<br />
Your Email:<br />
<input type="text" name="visitormail" size="35" class="style17" />
<br /> <br />
<br />
Attention:<br />
<select name="attn" size="1">
<option value=" Sales n Billing ">Sales</option>
<option value=" Sales n Billing ">Billing </option>
<option value=" General Support ">General Support </option>
<option value=" Technical Support ">Technical Support </option>
<option value=" Webmaster ">Webmaster </option>
</select>
<br /><br />
Mail Message:
</span>
<br />
<textarea name="notes" rows="4" cols="40"></textarea>
<br />
<input type="submit" value="Send Mail" />
<br />
</form> </td>
</tr>
</table>
</body>
</html>
|
save as sendmail.php
Code: |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Sendemail Script</title>
</head>
<body>
<?php
$ip = $_POST['ip'];
$httpref = $_POST['httpref'];
$httpagent = $_POST['httpagent'];
$visitor = $_POST['visitor'];
$visitormail = $_POST['visitormail'];
$notes = $_POST['notes'];
$attn = $_POST['attn'];
if (eregi('http:', $notes)) {
die ("Do NOT try that! ! ");
}
if(!$visitormail == "" && (!strstr($visitormail,"@") || !strstr($visitormail,".")))
{
echo "<h2>Use Back - Enter valid e-mail</h2>\n";
$badinput = "<h2>Feedback was NOT submitted</h2>\n";
echo $badinput;
die ("Go back! ! ");
}
if(empty($visitor) || empty($visitormail) || empty($notes )) {
echo "<h2>Use Back - fill in all fields</h2>\n";
die ("Use back! ! ");
}
$todayis = date("l, F j, Y, g:i a") ;
$attn = $attn ;
$subject = $attn;
$notes = stripcslashes($notes);
$message = " $todayis [EST] \n
Attention: $attn \n
Message: $notes \n
From: $visitor ($visitormail)\n
Additional Info : IP = $ip \n
Browser Info: $httpagent \n
Referral : $httpref \n
";
$from = "From: $visitormail\r\n";
//mail("YOUR EMAIL", $subject, $message, $from);
?>
<p align="center">
Date: <?php echo $todayis ?>
<br />
Thank You : <?php echo $visitor ?> ( <?php echo $visitormail ?> )
<br />
Attention: <?php echo $attn ?>
<br />
Message:<br />
<?php $notesout = str_replace("z\r", "<br/>", $notes);
echo $notesout; ?>
<br />
<br /><br />
//<a href="YOUR WEBSITE"> Home </a>
</p>
</body>
</html>
|
i have commented out the code you need to change  |
sorry for the bump, but you didn't write that you tool. i can give you guys the link to the site if you want.
|
|
Back to top |
|
 |
thephoneguy Grandmaster Cheater
Reputation: 1
Joined: 17 Mar 2007 Posts: 873
|
Posted: Sat May 31, 2008 7:57 pm Post subject: |
|
|
it was a thing on the net yeah but i made some changes. i forget where i got it. sorry forgot to give cedits. and please tell me where i said i wrote it?
stop bein a dick. now i have made a few more changes to it btw. (auto redirects to the home page after 5 seconds(of completing)).
_________________
If you see me posting referring to an earlier conversation 9/10 times it was in the chatbox at baby .
 |
|
Back to top |
|
 |
Overload Master Cheater
Reputation: 0
Joined: 08 Feb 2008 Posts: 293
|
Posted: Sat May 31, 2008 8:13 pm Post subject: |
|
|
ThePhoneGuy wrote: | it was a thing on the net yeah but i made some changes. i forget where i got it. sorry forgot to give cedits. and please tell me where i said i wrote it?
stop bein a dick. now i have made a few more changes to it btw. (auto redirects to the home page after 5 seconds(of completing)). |
you said you made the comments all throughout the code telling him what he needs to change. you didn't. You didn't say it was yours, but you didn't say it was someone elses
|
|
Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Sat May 31, 2008 8:15 pm Post subject: |
|
|
So. You don't have to give credits for a snippet. I mean it's not like a rule, but I mean really. And do you need to say it's someone else's. He said he commented where he needs to change things...he didn't say he wrote it. He even changed it, stop being a dick, seriously.
_________________
8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
Back to top |
|
 |
Overload Master Cheater
Reputation: 0
Joined: 08 Feb 2008 Posts: 293
|
Posted: Sat May 31, 2008 8:25 pm Post subject: |
|
|
oib111 wrote: | So. You don't have to give credits for a snippet. I mean it's not like a rule, but I mean really. And do you need to say it's someone else's. He said he commented where he needs to change things...he didn't say he wrote it. He even changed it, stop being a dick, seriously. |
listen, all i am saying is he didn't really do what he said he did. So thats it. Sorry if it seemed dick-ish, but i didn't mean it that way
|
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8585 Location: 127.0.0.1
|
Posted: Sat May 31, 2008 8:48 pm Post subject: |
|
|
oib111 wrote: | So. You don't have to give credits for a snippet. I mean it's not like a rule, but I mean really. And do you need to say it's someone else's. He said he commented where he needs to change things...he didn't say he wrote it. He even changed it, stop being a dick, seriously. |
http://forum.cheatengine.org/viewtopic.php?t=223453
Rule 6. Just because it's a snippet, doesn't mean it's yours.
_________________
- Retired. |
|
Back to top |
|
 |
torpin005 Master Cheater
Reputation: 0
Joined: 19 Nov 2007 Posts: 255
|
Posted: Sat May 31, 2008 9:39 pm Post subject: |
|
|
SXGuy wrote: |
If you want to add a subject line to it just add a small mod.
<a href="mailto:[email protected]" subject:CEF Rules>mail</a>
Im sure thats it, from what i can remember, havent written html for years! |
thats close, but it would be
_________________
Go check it out. Good Hacks |
|
Back to top |
|
 |
thephoneguy Grandmaster Cheater
Reputation: 1
Joined: 17 Mar 2007 Posts: 873
|
Posted: Sat May 31, 2008 9:50 pm Post subject: |
|
|
it was one of those you fill in the params and it auto generates your code. so it wasnt specifically written by someone else. thats like saying you need to give credits to (insert random IDE here) for every (insert random pre generated code snippet here) because you didnt "write" the code yourself. but yeah i am sorry for not saying it wasnt mine. but in my defense i was just trying to be helpful
btw with the mailto command in html it auto opens the users default email client. most likely outlook. it is truly outdated and very annoying the php is way simpler. trust me when i say i went way out of my way to find an alternative around mailto.
i am still very new to web development so please give me a break at times
_________________
If you see me posting referring to an earlier conversation 9/10 times it was in the chatbox at baby .
 |
|
Back to top |
|
 |
|