Jump to content

The Praetorian

Members
  • Posts

    333
  • Joined

  • Last visited

Everything posted by The Praetorian

  1. The Praetorian

    Email Forms

    Okay, I have a different problem now. I've found the right code to get the form to email to me, and I've got it working, I just can't figure out how to change the form to say what I want it to say. This is how I have it now, and it emails the form to me, but in my email it shows up as From: NobodySubject: email:(the email I used)Actual message:"Name, Age, gender: Name: Me"Anyone know what I'm doing wrong? <html><link href="layout.css" type=text/css rel=stylesheet><body><?phpif (isset($_REQUEST['email'])){$email = $_REQUEST['email'] ; $subject = $_REQUEST['Name'] ;$message = $_REQUEST['Name, Age, gender'] ;mail( "author@tsrealms.com", "email:$email", "Name: $subject", "Name, Age, gender: $message" );echo "Thank you for your application! One of the admins should be getting back to you via email within 24 hours.";}else{echo "<form class='blocktext' method='post' action='appmail.php'><br /><b>Email</b><br /><input type='text' name='email' size='20'><br /><b>Name</b><br /><input type='text' name='Name' size='20'><br /><b>~Note~</b> Leave this box blank if you'd like the writing staff to create an appropriate name for you based on your character's gender and nationality.<br /><br /><b>Age</b><br /><input type='text' name='Age' size='10'><br /><br /><b>Gender</b><br />Male: <input class='blocktext' type='radio' name='gender' value='Male'><br />Female:<input class='blocktext' type='radio' name='gender' value='Female'><br /><br /><input class='blocktext' type='submit' value='Send'><input class='blocktext' type='reset' value='Reset'></form>"; }?></body></html>
  2. Okay, most of that code doesn't make much sense to me. Which parts do I need, and which parts do I fill my own values in? And yea, I didn't know about the forms function for FreeWebs, but it's too late now since I already purchased a domain. heh. Unfortunately, I'm still somewhat of a beginner, at least as far as php is concerned, and all the tutorials I've read (including w3school's) have just made my head hurt.By the way, I've done several searches for forms and emails, and combinations of the two and nothing at all helpful has come up.
  3. What I meant by class was this.CSSp.blocktext{blah blah}html<p class="blocktext"></p>See how blocktext is a type of class? It would be helpfull if with things like that, there was a list somewhere of all the different classes.
  4. The only suggestion I have for the moment is this.In the tutorials, it would be very helpful if, when the tutorial tells you how to do something, such as adding a class to something... it would also give you a list of all the different types of class. Or link to a reference page with something similar. There are several areas where I would really like to find out all the different ways I can do a particular thing.Thanks!
  5. URL = http://www.freewebs.com/the_praetorian/form.htmlI'm not actually having a problem with a code, but I was wondering if someone could help me. I couldn't find out how to do this on the w3schools website.I'm wanting to work it so that when a person hits "Submit", the form will be sent from the website to my email. At the moment all it does is open Outlook Express. I know I probably need to have a domain email first, but I was still hoping someone could point me in the right direction for this code.Thanks.
  6. Thank you! That worked great. Awesome.
  7. The Praetorian

    Margins

    http://www.freewebs.com/the_praetorian/welcome.htmlRight. The problem I'm having is that IE seems to be ignoring my margin commands. It looks fine on every other browser, but on IE the paragraphs appear all the way at the left of the screen instead of in the middle where they should be.I'm using a blocktext command to get the margins the way I want them. The weird thing is that IE seems to read the margin command in the case of my hr's, but not for the rest of the page.<p class="blocktext">blah blah</p> ---- and in the CSS ----- p.blocktext{margin-right:auto;margin-left:auto;width:18cm;}
  8. Okay, can someone please help me? I'm still having the same issue.-- When I view my pages in IE, it seems to be ignoring the margin commands from my external css. It picks up everything else, (font color/family, background image/color and so on) But the paragraph's align to the left of the screen and not in the center of the screen like they do in every other browser. Does IE have a problem with the .blocktext command?On the other hand, when I use the same command for <hr /> it works the way it's supposed to.Website - http://www.freewebs.com/the_praetorian/welcome.html body{color: tan;font-family: "bernhardmod bt";background-image: url('background.jpg');background-repeat: repeat;background-attachment: fixed;background-position: center;}div.banner{margin:0;font-size:110%;line-height: 1.5;text-align:center;position:fixed;left:auto;width:8em;right:auto;}div.banner p{margin:0;padding: 0.3em 0.4em;font-family: bernhardmod bt;background: clear;border: thin outset clear;color: clear;letter-spacing: 2px}div.banner a, div.banner em{display: block;margin: 0 .02em}div.banner a, div.banner em{border-bottom: 2px groove gray}div.banner a:link{text-decoration: none; color: bisque}div.banner a:visited{text-decoration: none; color: bisque}div.banner a:hover{background: clear; color: clear}hr.blocktext{margin-left:auto;margin-right:auto;width:18cm}h1.blocktext{color: bisque;margin-right:auto;margin-left:auto;width: 18cm;text-align: center}h2.blocktext{color: bisque;margin-right:auto;margin-left:auto;width: 18cm;text-align: center}h3.blocktext{color: bisque;margin-right:auto;margin-left:auto;width: 18cm;text-align: center}h4.blocktext{color: bisque;margin-right:auto;margin-left:auto;width: 18cm;text-align: center}p.blocktext{margin-right:auto;margin-left:auto;width:18cm}
×
×
  • Create New...