Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Website forms in dreamweaver
#21
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.
[Image: 1403.png]
^ Infrosoft
http://www.thecodeyouneed.us.to/ - A wiki of source code, mostly in PHP and FreeBASIC
http://www.osadvocacy.uk.to/ - Your opinion matters no matter your OS
Reply
#22
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!
Reply
#23
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!
Reply
#24
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.
[Image: 1403.png]
^ Infrosoft
http://www.thecodeyouneed.us.to/ - A wiki of source code, mostly in PHP and FreeBASIC
http://www.osadvocacy.uk.to/ - Your opinion matters no matter your OS
Reply
#25
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.
Reply
#26
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 Wink 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
Reply
#27
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.
Reply
#28
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!
Reply
#29
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)
[Image: 1403.png]
^ Infrosoft
http://www.thecodeyouneed.us.to/ - A wiki of source code, mostly in PHP and FreeBASIC
http://www.osadvocacy.uk.to/ - Your opinion matters no matter your OS
Reply
#30
www.merrimack.org They don't come up at the same time.
Not yet Snake! It's not over yet!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)