Jump to content

Paim

Members
  • Posts

    110
  • Joined

  • Last visited

Posts posted by Paim

  1. 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. 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.

  3. 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.

  4. 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

  5. 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.

  6. 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 :)

  7. 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.

    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 :)

  8. 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 :)

  9. 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

  10. 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.

×
×
  • Create New...