Jump to content

Paim

Members
  • Posts

    110
  • Joined

  • Last visited

Everything posted by Paim

  1. Paim

    Sessions...

    Well....When someone generally logs in, the username and password they enter are input into a 'session variable' that stays with them no matter what page they visit. Session variables are like $_SESSION['blah'] and can be called on any page that has: <?php session_start(); ?> at the top of the page (before the <html> tag). This will get all of the session variables that are currently in use. Then you can do things such as: if ($_SESSION['user']) {//any commands or things to show while the user is logged in}else {// message or something telling them they need to log in to view the content} It may take a while, but practice by inputting things into a session variable: $blah = $_POST['username'];$_SESSION['blah'] = $blah; then putting the session_start() on another page, and typing <?phpecho $_SESSION['blah'];?> Err thats all tha tI can think of, not sure if its clear enough. Any questions feel free to ask.
  2. Nah, just take it as a compliment No offence intended
  3. Paim

    Online Advertising

    It all depends on your site and its visitors. ALso, with Adsense, I believe that it matters how many clicks you get compared to the number of impressions. 10 clicks and 100000000 impressions makes, lets say, $1. Whereas 5 clicks with 6 impressions will make more. I THINK. What im planning to do is sell advertising space to similar companies. For example (a very far-fetched one) say I was Microsoft. I make a site that heaps of people visit, and then sell ad space on it to another computing company. It will sell high since they'd get plenty of visitors.As I said on another forum, be creative :)Also, nice project you have in mind, I wish you the best of luck.
  4. Paim

    Link colours

    Link colours need to be SOMETHING more noticeable, anything...Its annoying trying to search for links in a big block of text. They need to stand out more.I put four links in that text, can't see them at first glance. Thats what I mean.
  5. Paim

    Forced Wrapping of Text

    Just a question, how are you going to come up with text that exceeds 500px with no whitespace?
  6. Paim

    Help

    http://www.freewebs.comhttp://www.atspace.comGeocities is baaaaaaaaaaaaaaaaad
  7. No worries.Im pretty sure that it can be done with PHP as well, but thats getting even more complicated. I've used that script before, and it works a charm.
  8. Yep, and anyways, most WYSIWYG editors come with a code view. It doesn't matter the method its made in, the final product is the thing to judge by. Im yet to see proof of how its 'cheating'.
  9. Well many people have many opinions. Most use Notepad if you're a freakin nerd and know everything about HTML. A lot of newer people will use Macromedia Dreamweaver, but thats expensive unless you have student discounts or some crap like that. I use HTMLGate, available at http://www.mpsoftware.dk, but theres other programs such as...I dont know right now, havne't thought about it. Notepad will do for now though, until you learn the more important things such as Meta head information.
  10. Paim

    Owning own email domain

    Um, become a bazillionaire/own a big company and hire someone to do it for you. Seriously, that'd take years to learn, hundreds of people to maintain as well, and millions to start up (I assume). For now, if you want simple email forms....learn PHP and the mail() function. Well it could be expanded to a massive network, but PLAN before you do anything. Costs, maintenance fees, employees etc
  11. Paim

    html games

    Or since we're talking about not easy things, learn Flash and ActionScript and embed the movie in your page. Or if you wanna make your life harder, learn something like Maya/Lightwave and C4D, then C++ and make a 3D game and sell it.
  12. No its not. I can code a site in Notepad if I want, but syntax highlighting is excellent to spot errors, such as if you see your entire code in one colour, you can see somethings wrong (maybe you missed an ending brace or something). Plus, im betting you cant remember an entire doctype and meta tag information, plus charset and type it out perfectly without copy/pasting off another site or file. So, if you say im cheating, then so are you
  13. Paim

    Html Books

    Thats what im going to do on November 28th, when I have to take back this Javascript book to the library :)I already know about 75% of all the crap in XHTML and CSS, but I want to get the books in case I missed something. ALways good to read up as much as you can to get the best understanding you can of a subject.
  14. Paim

    css

    Generally developers will say always combine the body and html attributes into one css tag, like:body, html{ la dee daaaa}Anyways, try this: body,html {background: #000 url('tabs/background.jpg') no-repeat;margin:0px;padding: 0px;} and take out the bgcolor and text bits in the <body> tag. I think the problem with the background colour was the conflicting CSS declaration of it: background: url('tabs/background.jpg'); the background: thingy also accepts a colour as it, using background-image: might solve it too. Thats why removing the link to the stylesheet called upon bgcolor in the body tag.Also remember for valid XHTML tags without a closing tag (such as <html></html>) should be closed with a slash. Image tags and line breaks: <!-- Image tag XHTML valid --><img src="lala.jpg" /><!-- Line Break XHTML valid --><br /> good luck
  15. A post on switching stylesheets
  16. HTMLGateSite: http://www.mpsoftware.dk i thinkPrice: FreeDescription: Syntax highlighting for HTML, CSS, PHP, JS, Java, SQL, err other stuff which i forget atm Easy to use, doesn't add crappy extras, simple and yeah...good good
  17. Are you talking about submit buttons? If so, its the font-size that affects the size of the button If not, ignore me
  18. Im not too familiar with ASP, but im guessing...First you create the Database using Access, then using an ASP page, enter info into a form, then the ASP coding in that page will enter the info into the database (registering)Then for the loggin in, you would use a form in ASP to compare the username they entered, and the password, with the values in the database. If they match they log in, if not they're rejected.Not too experienced with ASP, PHPs my language
  19. Well, what is the code/link to the page, and the Server-Side script page (the 'action' of the form)
  20. http://www.w3schools.com/css/pr_class_cursor.asp
  21. Most likely. Always have a few sites to use to check references/tags, I use W3Schools and HTMLForums (mostly because the guys there are GENIUSES). Or just search Google, like 'CSS property make input bigger' or whatever you need
  22. Paim

    405 error in PHP form

    Afaik, Freewebs DOESN'T support PHP, and no, search Google for like 'free web host PHP' or something. Get isn't really good for forms, its more useful for things perhaps user profile pages, where the url is like http://www.blah.com/profiles.php?id=8 or something. Post is more used for forms anyway
  23. Paim

    Template?

    Get a template...well if you're looking to download them, just go to Google and type in 'Website templates' or visit TemplateMonster.com or somethin like that. If you want to MAKE one, just use Photoshop or any other graphics editing program, and if you're gonna code it then obviously use a text editore/HTML editor.Also, you can't really make games with HTML, since it both doesn't remember anything (high scores etc) and can't be used to make accounts etc. You can either use PHP/ASP (i think ASP) for text-based browser games, Flash for other games (Newgrounds type games) or C++ for 3D games.
  24. Oh that, I thought it was someone like movie star etc or something...haha
×
×
  • Create New...