Jump to content

SFB

Members
  • Posts

    282
  • Joined

  • Last visited

Contact Methods

  • Website URL
    http://snowforts.ath.cx
  • ICQ
    0

SFB's Achievements

Member

Member (2/7)

0

Reputation

  1. I think it is better for websites to not have background music. most of the people that want to hear music while surfing the web are alredy listening to their own music. but if you really want backgroud music i think there is like a backgroundsound tag. your other option would be to use something like embed tag. It would probably be better to use the embed tag and then have autostart set to false so the viewer can choose to play the music.
  2. I think it is a good first template. You should probably start looking into adding som css now. they way you are changing the colors and some other things is fine but some of those ways are depreciated. browsers still understand it but it is better if you used css insted. I challange you in the future (after you have a good understanding of css) to make a template without using a table. you can use div's and other tags and then have css align them how you want.
  3. I learned how to use sessions from http://php.net. they have good informations on all the functions and they also have little examples. This page is a good starting point for session http://us3.php.net/manual/en/ref.session.php its got extra information so mabye just read the introduction section and the Sessions and security section and then look at their example. if you dont get what one of the functions does, search for it on php.net. It isnt really in tutorial form but its how i learned php
  4. SFB

    dynamic menu

    I'm just a little confused on what you want. so it seems like you have some sort of menu with links and you want to be able to use a script to edit them? now you also want the users to be able to add their own links to that menu? if i am correct i would start with creating your menu in a file named something like menu.php then you could make an admin pannel for you to edit the links and you can make a page for the users to add links.
  5. I think it would be usefull to go in each board and make a pinned/sticky post that has code examples for the commly asked questions. There are lots of examples of the code around here for people to search but the average user doesnt seem to search, they just ask. or mabey we just dont realize it when people search. anyways I think it would be usefull to the helpers and users to have examples that can be refered to. an example of one of these could be like Post name: PHP Email SendingMessage: Code... information about the code...Just another one of my opinions
  6. there are ways to make it valid but some of the browsers wont understand without the embed tag. I wouldnt worry so much about 1 thing not validating. validation is more like a recomendation than a thing you have to have. you could just link to the video on you tube and then not have it on your site. that would solve your prolblem.
  7. SFB

    Destroying Session

    You could also set the session to something as something like "FALSE" or "0" and check for that in your script.
  8. SFB

    File Input tag in html

    I dont think you need to use css. i dont see why you would want to change the browse button to upload because it would still bring up the window to find a file. you can change the submit button to say upload by adding a value to it like i did in the code below. <form action="process.php" method='post'><input type='file' name='file'><input type='submit' vlaue='upload'></form> now if you wanted the user to type in a location you could get rid of the browse button but then you would run the risk of having them input a wrong location or something that does not exsist. I strongly recomend not using the code below. <form action="process.php" method='post'><input type="text" name="file"><inpuit type="submit" value="upload"></form> this post should really be in the html section not php.
  9. you should be able to do something like $_SERVER['PHP_SELF']; if that returns header.php then you should check that the code in header.php actually has start and end tags for php (ex <?php ?> ) the extension is alredy .php so that shouldnt be causing the problemfor the variable thing, i havent been able to do that myself. some other helper could help. send a pm to justsomeguy if he hasnt alredy posted here.
  10. try something like this. your url would be something like /index.php?page=1 then php would multiply that by ten to get where to start with and then add 10 to find what row to end with. if the page was 0 it would be 0-10 and if it was 1 it would be 10-20 and so on. a link would be placed at the end so the user could go to the next ten pages. I did not include a way to check and see if the rows exsist in the database. that is up to you. <?phpif(isset($_GET['page']){ $page = $_GET['page']; //the math to figure out what row to start on $min = $page * 10; //the math to figure out what row to end on $max = $page * 10; $max +=10; //next page $next = $page++;}else{//if no page is set start a 0 and go to 10 $min = "0"; $max = "10"; $next = "1";}//loop from starting row to end rowfor($i=$min; $i>$max; $i++){//database stuff goes here $i will be the row number}echo"<a href='/index.php?$next'>Next ten</a>";?>
  11. looks very nice. going to join after i click on add reply here lol
  12. SFB

    Poll

    you could have people email your vote and then update the poll manually but that is a lot of work. I am making a poll that uses php to do all the work. it would be done by now but my host is down and i dont feel like testing it on my computer. mabey it will be done sometime in the next 7 days.
  13. ok well i never ment to over complicate this but thats what allways happens to me. i'll sent the pm now.
  14. I thought Chocolate570 was saying one and i really only want one. my first choice would be php then (x)html/css
  15. I could pm what i wanted to help with but i dont really know yet. if what we are making uses php then i will go for php but if it doesnt i will help with css(/html) (I dont really see how you can just do css without being involved with the html but we will see.)
×
×
  • Create New...