-
Posts
282 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by SFB
-
-
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.
-
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
-
dynamic menu
in PHP
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.i need a menu that should be editable.There fixed pages that should be linked in the menu and the user can add costum pages to it. The fixed links to the pages should be possible to move them up/down. How can i do this? I dont need whole code but examples on how to start with it -
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
-
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.I am working on this website and yesterday I thought i'd embed a YouTube video, but when I attempted to validate it failed, then I switched from XHTML 1.1 to XHTML 1.0 Transitional but it failed aswel.Did anyone else have a similar problem or perhaps knows how to fix it, or perhaps there is no way of validating with an embeded YT video.website once again : http://www.riff.coldsteelclan.co.uk/test/index.php -
You could also set the session to something as something like "FALSE" or "0" and check for that in your script.
-
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.i think you must use css<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.
-
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.I use PHP includes for my site. I have a header file which contains everything up to the main content. Then I ahve the footer file which is everything down from the content to the </html> tag.I would like to be able to have code in the header file which checks to see what the current page is (the current page. not the included header file). Whenever I try to, it tells me the current page is header.php rather than the actual page being viewed (ex. index.php which has php include statements pointing to the header and footer files). I'd also like to be able to pass variable from the index page to one of the included one. Which doesn't work as expected. I'd like to set a variable on the index to what I want the page title to be. Since the title tag for the page is in the header.php file, it should read the variable and echo the variable inside the title tag. This doesn't work as expected and it doesn't do anything. -
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>";?>
-
looks very nice. going to join after i click on add reply here lol
-
Poll
in HTML/XHTML
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.you'll need something to process the poll like a server side lanaguage, so in short you can't do a poll in just HTML -
ok well i never ment to over complicate this but thats what allways happens to me. i'll sent the pm now.you could just say that in your PM...if we chose PHP you want to do that if not you want to do XHTML/CSS -
I thought Chocolate570 was saying one and i really only want one. my first choice would be php then (x)html/cssSFB, you can choose 2 types of coding to be in you know! Im going to be in server side and xmhtl/css -
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.)
-
you can also echo html if you wantedthat will only put line breaks in the cource code not in html that is renderedecho "something1 <br>";echo "something2 <br>";echo "something3 <br>";echo "something4 <br>";
Edit: oops posted at the same time as Dan again
-
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.No, three weeks is too short.. I say 5-6 weeks, that way the project will at least be pretty nice... We might need some graphics people too though? -
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.Lol, ill pass on the year part.. maybe . But maybe the project should be like 6 weeks.. that wouldnt get too boring. -
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.
-
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.Oh man...this is a toughie. Basically everything has 1 vote. -
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.Another factor is hosting. If you are on a free web host, your site will be ranked far lower then if you are on one of the major paid hosts. Searching has evolved from a simple keyword search to actually determining which websites are the most relevant, and to some people a free web host means you aren't serious, and therefore not relevant.http://www.wordsinarow.com/seo.html -
please post the code for your shopping cart and a link to where it is located so we can take a look at it.
-
with the current file you have, there is no way to have it start automaticlyWell either way the video still does not start up automatically -
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=38Thanks.I can see this image. But I cannot see all other examples. For the last example flash. I can see both flashes on IE, but cannot on firefox. -
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'Huh?What's with all the extra stuff, isn't auto start=true all that's required?
Background music in a blog....
in HTML/XHTML
Posted