login over a picture

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Smackie
Forum Contributor
Posts: 302
Joined: Sat Jan 29, 2005 2:33 pm

login over a picture

Post by Smackie »

anyone know away to have a login over a picture??


Thanx Smackie
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

what?
Smackie
Forum Contributor
Posts: 302
Joined: Sat Jan 29, 2005 2:33 pm

Post by Smackie »

lol i know its a really newbie question lol but i want to have my login put on top of a picture........ :?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

it would have been nice to have said that in the first place... :?

generally, you put the form over something that has a background image set... or similar.. maybe you should explain more.. or show examples..
Smackie
Forum Contributor
Posts: 302
Joined: Sat Jan 29, 2005 2:33 pm

Post by Smackie »

lol well ok say i had a picture ok and i wanted to put that on my website ok but not only i want it to be on my website i want to have my login script to be over the picture so it would look alittle better...

something kinda like this
http://logd.maddnet.com/

the dragon around the login.........


sorry i havent been to sleep in 3 or 4 days :? lol
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

did you look at the page code for it?

Code: Select all

<form action='login.php' method='POST'>
<table width='212' height='234' border='0' cellpadding='0' cellspacing='0' background='images/logindragon.gif' class='noborder'>
	<tr>
		<td valign='bottom' align='center' class='noborder'>
			<u>U</u>sername: <br><input name='name' accesskey='u' size='10'><br>

			<u>P</u>assword:<br><input name='password' accesskey='p' type='password' size='10'><br>

			<input type='submit' value='Log in' class='button'><br>
			<img src='images/trans.gif' width='1' height='37' align='absmiddle' alt=''>
			<img src='images/trans.gif' width='1' height='15'>
		</td>
	</tr>
</table></form>
the exact code they have for that part.
Smackie
Forum Contributor
Posts: 302
Joined: Sat Jan 29, 2005 2:33 pm

Post by Smackie »

i cant for some reason my script button wont work on my computer to look at scripts on websites :? dont know why either and on that script anyways you gotta have a trans.gif picture and i dont know how to get them :-S
Smackie
Forum Contributor
Posts: 302
Joined: Sat Jan 29, 2005 2:33 pm

Post by Smackie »

alright i got it finally :) well the trans.gif but i still want to know why my script looker still wont work tho :-S
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post by Maugrim_The_Reaper »

All you need to do is put the form in a table cell, and add a style tag setting the background image to whatever the backimage you want is. Make sure it's centered. Alternatively a CSS div would work in place of a table - depends how you create your layout... W3Schools.com is good place to look up these sorts of attributes...

As for seeing the script (I assume you mean the html markup), get a browser that works - Mozilla Firefox is a good start...:) The Web Developer 0.8+ plugin for Firefox is also a good idea...
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

thank you for rehashing what I already said. :roll:
User avatar
Trenchant
Forum Contributor
Posts: 291
Joined: Mon Nov 29, 2004 6:04 pm
Location: Web Dummy IS

Post by Trenchant »

betteryet make a simple form in flash. This would be the easiest way to create a login form with an image behind it. If you used flash just for the login form and image behind it you could also make the image and the form blend in a little better. Its easier than going throught and tinkering with HTML.


If you post the image here that you want and a rough idea of how you want it I can whip it up for you really quick. (send me a pm with the url of this topic just so I don't miss it)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

it's not hard to do a image in the background of a form. :roll: Good grief.

I've blended forms and backgrounds together, it's not all that much harder.. :roll:
User avatar
Trenchant
Forum Contributor
Posts: 291
Joined: Mon Nov 29, 2004 6:04 pm
Location: Web Dummy IS

Post by Trenchant »

feyd your someone that has experience on almost all common web programming lanuages... You can do almost anything :P

I myself would rather just do it in flash.
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

Maybe it's just me, but the code it would take to make a background image and a form ontop of it would probably take 20 seconds for any novice html scripter to create. Loading flash takes that long on some people's computers. Then they have to learn how to submit flash forms to a php page, make sure the users ALL have flash installed (or they can't login..), etc.

Hmm.. HTML, or flash.. html, or flash.. I can't decide ;)
Post Reply