Jump to content

SFB

Members
  • Posts

    282
  • Joined

  • Last visited

Everything posted by SFB

  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.)
  16. SFB

    Blank Code for PHP

    you can also echo html if you wantedecho "something1 <br>";echo "something2 <br>";echo "something3 <br>";echo "something4 <br>"; Edit: oops posted at the same time as Dan again
  17. the need of graphics people depends on what we make. I dont think we should go overboard on graphics. mabey just use them for some buttons and smilies and like 1 main graphic twards the top or something.
  18. ooups...i didnt mean to restart the disscussion on how long the project should take but i was saying if it is way to short everyone will know by one or two weeks and a motion or something can be made and agreed upon to extend the dedline. like i said before lets try three weeks for our first project.
  19. I used ie for a while as an average net surfer but after i started designing web pages i noticed there were other browsers that did things better than ie. there are a bunch of little things that i dont like about ie. especialy from a website design standpoint. I found that FF and Opera are much faster and can be customized much better for my needs.
  20. I left my computer off for a whole day and i came back and wow there was a lot of posts here. I think we need more votes in the polls. I voted but um it didnt make any difference because i voted for things that nobody else had yet. I do think three weeks is a little short but if nobody is done and the interest is still there the dedline should be extended but i dont think it should be extended yet. we should push ourselves and try for the three weeks.
  21. SFB

    Help me please

    lets say you host yourself. is that better, worse or (i need a word for no change) for your rank? I seems likely that search engines would take this into consideration because most of the time it is true but there are some good relevant content on free hosts. I guess websites on free hosts are more likely to be forgotten than ones that you spend money one monthy/anually. that means the content on paid sites would be more likely to be updated or just removed.
  22. please post the code for your shopping cart and a link to where it is located so we can take a look at it.
  23. with the current file you have, there is no way to have it start automaticly
  24. humm i found what you cant see with firefox. i cant see the calendar, graphic or flash in those examples. i would tell firefox about that. w3 schools cant do anything about it because that is valid code. mabye firefox doesnt support those features of the object tag. I would try asking about it here http://forums.mozillazine.org/viewforum.php?f=38
  25. all that other stuff makes it valid script. like justsomeguy said above, autostart='true' will not play the move because the movie is in a flash file. flash controls the starting of the movie. if you could get the actual movie and not the flash file then you could use autostart='true'
×
×
  • Create New...