Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. You need the quotes, not the parenthesis.
  2. This is a CSS/HTML question. Use margin with 0 auto;
  3. You complained about no one helping. You need to learn how to ask a question. "So why does it only have get left in input, did I mortalize it or something?" This makes no freaking sense. You have not told us what the code is supposed to do, what the expected output is, any errors you get, etc. You just posted code, numbers and a nonsensical question.
  4. Uhm, only one of them is valid code.
  5. I want to be able to have users use a site with cookies disabled, but it needs sessions. So I have been going over all of the session info in the manual trying to figure out how I add the session ID to the url when cookies are disabled. This is what I have: <?php ini_set('session.use_trans_sid', '1'); session_start(); print session_id(); ?> It is my understanding that now when I click a link, the session id should be added to the URL. However, that does not happen, and the session_id is changed. Also, if I refresh the page, a new session starts, with a new ID. None of my session data is being saved. For example if I have this: <?php if(isset($_SESSION['test'])){ print $_SESSION['test']; }else{ $_SESSION['test'] = 'test'; } ?> The first time it should show nothing, and the second time (refresh) it should show 'test'. It always shows nothing. Can anyone help me figure out how to accomplish this? I don't want to force users to enable cookies, but I don't want the session id in the URL unless it has to be.
  6. "bad words" only have as much power over you as they let them. You get upset about shit but not poop? Grow up. It's a word. If you let it rile you up you're giving the person whfo said it AND the word power over you.
  7. I think you might be going about this the wrong way. But anyway I don't think there is a function like what you're asking. You'd have to define somewhere how many arguments each function needs. Or edit the core PHP code, I guess?
  8. If you used a function to do your queries you could do a counter like suggested much easier.
  9. <?php $str = '<select name="a">'; for ($a=0; $a < 10; $a++){ $str .= '<option value="a">1</option>'; } $str .= '</select>'; return $str; ?> By the way, all 10 options will be identical according to your code.
  10. You'll need to figure out how many hours, minutes and seconds are left manually, using math.
  11. Remove the @s from the code, and you will see better errors.
  12. because you're returning a string which has the words for($a...etc in it. Not php code. You need to use the for loop to append strings to the returning string.
  13. Remove the @ - it is the error supressor.
  14. They should have different values. On each one, do if the value is equal to the selected value, make it selected. We'd have to see the code to help more than that.
  15. Also, keep in mind sessions last for the subdomain. http://site.com will have a different sessionID than http://www.site.com
  16. You're going to get errors with that. Try: echo "<option value=\"$company\">$company</option>"; Or: echo '<option value="'.$company.'">'.$company.'</option>';
  17. You can't have searched very hard. http://www.google.com/search?q=email+form+php
  18. It's nothing to do with PHP. Ever heard of GOOGLE?
×
×
  • 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.