Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. On your main.php page wherever you want your content, just put that var. so if you have a header.php and footer.php it sounds like you do this: <? require_once('header.php'); $content; require_once('footer.php'); ?> You should check the support forums for the software though, they likely have documentation for it.
  2. Radio buttons are similar. Using what you have I'd do: [code] <?php foreach ($wizard->FreqOfMail as $k => $v) {   print '<input type="radio" value="'.$k.'"';   if ($wizard->getValue('FreqOfMail') == $k) {       print ' selected ';   }   print '">'.$v; } [/code]
  3. AKA Regular Expressions. There are some good tutorials for it.
  4. http://www.phpfreaks.com/tutorials/142/0.php
  5. http://www.phpfreaks.com/tutorial_cat/25/Page-Number--Pagination.php
  6. Can you post the contents of the files?
  7. There is a good tutorial on pagination on this site.
  8. Is this what you're looking for? http://us2.php.net/manual/en/function.headers-list.php
  9. Are you sure there isn't more in your script?
  10. Instead of trying to set the value, just print it before the input box. That addresses that problem.
  11. http://www.blooberry.com/indexdot/html/tagpages/i/inputfile.htm - Down at the very bottom it explains why this doesn't work in IE. Basically, you can't set the value="" of an input type="file"
  12. You have: [code] $email_field = $_POST['email']; if(!ereg("[0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-z]", $email_input)) { [/code] The variables don't match,
  13. Because they can be helpful to other people later on. There's no need to delete posts :)
  14. So, take a look in Firefox, to help ;)
  15. You could record the time the session starts as a variable, and on each page check if it's been two hours?
  16. Are you using Firefox? Open Tools, Options, Privacy. Click show cookies and find your cookies. See what they're set to. Then try your logout and see again. Setting them to nothing and with an expiration date in the past should work. Why do you say it's not working?
  17. Check out example 2 on the setcookie page. http://us2.php.net/setcookie It goes over how to delete cookies.
  18. That doesn't actually fix your problem, and because you didn't read the topic you likely haven't learned how to solve the problem in the future. You were printing content to the browser before trying to redirect, you can't do that in PHP. You asked "how can I sent the visitor allready login to a different page without giving the welcome and the two links, just to a different page" Well, that's not what you're doing, now you're showing them the links and then redirecting them. If you want to do it like you asked, you have to restructure your code. Reading the topic I suggested would have helped.
  19. Why do you keep using $formVars? Where is that coming from?
  20. thorpe: you can break out of functions, unless I misunderstand you. You can do function foo(){   $bar = 1;   ?><p>Hi</p><?   return $bar; }
  21. So you're saying if you do print $_POST['days'].'-'.$_POST['month'].' '.$_POST['year']; RIGHT under that, it doesn't show all the numbers?
  22. What did the strings ever do to you? Post here what the $_POST array contained from the print_r()
  23. [code]<?php if($x){   ?><html here><?php }else{   ?><more html><?php } ?> [/code]
  24. You shouldn't echo out that much text. Just end your PHP and then write the HTML. That will probably help clear out the error.
  25. You just use the url to the file. You put it in the uploads folder, so that's the start of the path. Then $_FILES['Picture'] ['name']
×
×
  • 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.