Jump to content

sKunKbad

Members
  • Posts

    1,832
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by sKunKbad

  1. I've never heard of such a thing as a forum allowing for users to post as another username. I've moderated or admined a VBulletin forum, and also a phpBB forum, and they don't have anything like this that I'm aware of. You're probably stuck with writing a custom plugin or creating a whole forum from scratch.
  2. You are correct about the mess. First, you must declare a doctype, or you are going to force browsers into quirks mode, and you will never reliably have a design that works. Next, there is nothing that you are trying to do that needs absolute positioning, and absolute positioning will just bite you in a rear when it comes to your site being accessible. Look at this example, and study it: <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta http-equiv="content-type" content="text/html; utf-8" /> <meta name="language" content="en" /> <title>Basic CSS Floats</title> <style type="text/css"> #container{ width:606px; margin:0 auto; } #wrapper{ float:left; width: 600px; background-color:pink; border:solid 3px red; } #bluebox{ float:left; width:50%; height:200px; background-color:blue; color:white; text-align:center; } #greenbox{ float:right; width:50%; height:200px; background-color:green; color:white; text-align:center; } #clearwide{ float:left; width:100%; clear:both; line-height:0px; } #yellowbox{ float:left; width:100%; height:200px; background-color:yellow; text-align:center; } </style> </head> <body> <div id="container"> <div id="wrapper"> <div id="bluebox"> <p>Blue</p> </div> <div id="greenbox"> <p>Green</p> </div> <div id="clearwide"> </div> <div id="yellowbox"> <p>Yellow</p> </div> </div> </div> </body> </html>
  3. I'll consider that the right answer, because it is what I wanted to hear! Thanks.
  4. I know that the HTTP_USER_AGENT can be easily modified. I have done it myself in cURL and using stream_context_create. For general purposes though, I'm wondering if all modern browsers will always output or reliably never output a user agent string. What I'm worried about is a browser that outputs a user agent string on one request, then for whatever reason decides not to for the next one, or randomly output/no output. Would being on a secure page make a difference?
  5. Since $checkbox tags is now an associative array's value, The name of which I am not certain, I will call that array $theArray. So to access the values of $theArray['tags_input'], you would need to loop through $theArray['tags_input']. $x = 0; foreach($theArray['tags_input'] as $checkbox_tag){ echo "$checkbox_tag is the value of the array element in position # $x."; $x++; } You could bypass this loop and get straight at the values by doing something like this: if(isset($checkbox_tags){ echo $checkbox_tags['0']; echo $checkbox_tags['1']; // etc..... }
  6. Where are the values for $username and $password coming from? Also, what is your query?
  7. if ($numrows!=0) should have an double equals == I think I was cross-eyed... I didn't even see the exclamation point..
  8. If you meant $menuID instead of $ID, then it would be more like this: <?php $menuArray = array(1, 5, 6, 7); if (in_array($menuID, $menuArray)) { echo 'Yabba Dabba'; } ?>
  9. Try using a standard opening tag for <?php instead of the short tag <?. Make sure that short tags is OFF in your php.ini
  10. Of course only one is posted, because they both have the same name.
  11. why not just use mysql_num_rows() ?? If mysql_num_rows() gives you anything but 0, then you know to insert the new group/user into the database.
  12. They designate a block of code to run, instead of just a single line. You can use them with a single line, and I think it actually makes the code more structured, but this is personal preference. For example: if(!isset($some-var)){ //do something line one //do something line two }
  13. Simple RewriteCond %{HTTP_HOST} ^www.site.com [NC] RewriteRule (.*)$ http://site.com/$1 [L,R=301]
  14. It seems that you must be using Ajaxian type code to get the price, so you should at the same time create a form button when the price is displayed. Alternatively, you could change the name and value of the existing submit button, so that it functions as a multipurpose button. When this information is posted to the second page, where you will collect the user's email address, you will simply populate some hidden form fields with the data that came from the first page (price) When all of this info is submitted, you will show a thank you message and use php's mail function, or another mail class/script to send the email to yourself. I can't write code for you, but this is the strategy that I would use, and it's actually something that you will use often.
  15. We still have them, but decided not to put them up because they were outdated. If you wish, I could probably find it and send it to you, but we're not going to release them generally. Hmm... someone else complained about that. We'll have to look into it. I would be grateful to see the old mod_rewrite tutorial. I actually found it really good when I first learned mod_rewrite, and I have had others ask about a good tutorial. Is it really outdated? I'm sure you have access to my email address, but if you need it let me know. Thank you.
  16. Yes, it could be Firefox. If you use the FF extension "developer toolbar", simply turn off the cache, and that will tell you if it is FF or not.
  17. The first script uses php short tags. You might use a normal php opening tag and see if it makes a difference.
  18. Maybe if you show us some code, we can point out your errors.
  19. so sorry for the re-post. I am not getting confirmation that the post actually was posted. My browser is just frozen at the form when I submit.
  20. There was a great mod_rewrite tutorial on this site before the re-design, and I'm wondering if it is still available?
  21. How is that different or even "more advanced" than "...to run an automated process on all POST data". I was only referring to 9three's original post. You had posted before I hit the post button, and I didn't feel the need to change my post. Sorry for the confusion; we had the same idea. I usually use php's data filtering: http://php.net/filter
  22. This would be a time to use a switch statement.
  23. to start, all of those else ifs should just be ifs.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.