Posts: 495
Threads: 29
Joined: Sep 2005
Quote:Yeah I'm getting paid....workstudy, but anyway, this is my first time making a form. I made a website once before, but not half as complex as this. Anyway I think I got the form to work, I'm having it post the info to the server without prompting them to send an e-mail.
Now I have 1 more question for you guys. I used layers for just about everything in each page of this site. Is there a way to center layers? I've done some searching and they say you can't, but I can't use tables because they do not allow overlapping.
You manually center it with percentages and ems.
Posts: 354
Threads: 28
Joined: Feb 2004
OK, but say someone decided to resize the window. I don't think that will reposition the graphics and whatnot.
Not yet Snake! It's not over yet!
Posts: 354
Threads: 28
Joined: Feb 2004
After many more searches on the net I found that adding this before all the layers within the body tag, it works:
Code:
<div id="wrapper" style="width:760px; top:0; margin:0 auto;
position:relative;"> ......layers......</div>
Not yet Snake! It's not over yet!
Posts: 495
Threads: 29
Joined: Sep 2005
Quote:OK, but say someone decided to resize the window. I don't think that will reposition the graphics and whatnot.
Pixel and em values won't. However percentage based <div>s will resize. I've used them a thousand times in many designs that never got off Dreamweaver because I have no time to implement it. Look at any site that resizes and you will see that they use ems(or px) to widen static things and percentages to stretch things to proper width of the broswer window. This is something everyone has learnt in web design at one point whether by criticsm or courses, even if you're as crappy as me.
Posts: 111
Threads: 17
Joined: Apr 2006
Wow, I do not know php.
I've been trying the same thing with a form, only with notepad. I just don't have any idea what I'm doing - I dove in too deep...
Customize Your Computer
A text file to view the php found
here
Quote:As a side note, I wish I was a robotic zombie ninja pirate.
Posts: 838
Threads: 17
Joined: Jan 2002
There's a missing semicolon on line 175. And you shouldn't be using $_REQUEST, use $_GET or $_POST instead, depending on where you get the input from.
Edit: Looks like you have more missing semicolons, so if you get more errors, check for that.
And a tip: Dont echo a huuuge block of html like you do on line 219, its bad coding practice
Rather you should escape php with ?> and then go back in with <?php.
Code:
...
}
else
{
?>
html goes here
<?php
}
...
You see?
url=http://www.copy-pasta.com]CopyPasta[/url] -
FilePasta
Posts: 111
Threads: 17
Joined: Apr 2006
Oh, thanks! I'm completely new to php, and i've been planning on putting a email sending option since I made it last year.
Quote:As a side note, I wish I was a robotic zombie ninja pirate.
Posts: 354
Threads: 28
Joined: Feb 2004
New question for ya. How can I have multiple buttons and/or graphics appear all at once...or load all at once when the user opens the page? Also how can I make the file-size of the button smaller? Currently I'm using GIF's.
Not yet Snake! It's not over yet!
Posts: 495
Threads: 29
Joined: Sep 2005
Quote:New question for ya. How can I have multiple buttons and/or graphics appear all at once...or load all at once when the user opens the page? Also how can I make the file-size of the button smaller? Currently I'm using GIF's.
1) I'm not following you here. Buttons always load fully for me
2) Use CSS to style a normal button(input is the CSS term)
Posts: 354
Threads: 28
Joined: Feb 2004
www.merrimack.org They don't come up at the same time.
Not yet Snake! It's not over yet!