Search results

  1. S

    How do I get multiple buttons in a form going to different places?

    I was wondering how forums have two buttons "Submit" and "Preview" which go to different places from the same form. I would like to duplicate that effect for a review posting site. Could someone tell me how that works and how to do that?
  2. S

    PHP header location not working on X10hosting

    Ok, thanks for the info. I fixed it on my local copy.
  3. S

    PHP header location not working on X10hosting

    Yes, I understand that part. I suppose there's no workaround in the way I described. But I think the way I'll do it is to have the link send me to a page that isn't included, then redirect it to the included pages based on the if statement on the top. Thanks. I do have a second question: why...
  4. S

    PHP header location not working on X10hosting

    I'm pretty sure it is what essellar said, although, I have the header on an included file so the header functions way down the line in the preproccessor when the page loads. Is there a workaround for this or a different way to work this?
  5. S

    PHP header location not working on X10hosting

    I am trying to use the php header("Location:url") to redirect a user to a login page if they have not logged in yet. It works fine on my local copy but on X10 the redirect does not work. Is there some setting which does not allow PHP header or something on the X10 servers?
  6. S

    Post multiple images in a form - Upload to server help

    Sorry, I thought there was some generic answer I just wasn't seeing. Here is my post form: <?PHP // Post_form.php // the form to post a new review if(!$userSession || $userPermission < 1) { header("Location:index.php"); } ?> </script> <style type="text/css"> #post_form p label...
  7. S

    Post multiple images in a form - Upload to server help

    I am updating a review site. I would like the posters to be able to add multiple images into their posts. First, what would be the best way for the form to handle this, and second, what would be the best way for the addPost script to upload all the images? My thought was to have a button...
  8. S

    Login gives "500 Internal Server Error"

    I'm not sure if this is the right place, but when I submit my login form and it goes to the page to validate I always get a "500 internal server error." Everything else seems to work just fine. Validation form <?PHP // validate.php // Validate user input and login // include form_data class...
  9. S

    Embeding videos in user submission site

    I am making a user submission site where people can post anything they want. I want them to be able to post videos but I also want to be safe from XSS. Currently I just use the strip_tags() function in PHP but that removes the videos tags. What would be a good way to allow safe embedding videos?
  10. S

    Registration Script Optimization

    I am doing some research into PHP Classes but I'm not very experienced with them. Could you give me an example of what you're trying to do with $userForm = new UserForm; if (($errors = $userForm->validate($_POST))) { # UserForm::display takes keyword arguments that affect display...
  11. S

    Registration Script Optimization

    So something to this effect: Registration Script (addUser.php) <?php ## Validate Registration ## session_start(); ## Base Modules ## include("../../scripts/modules.php"); ## Registration Modules ## include("../../scripts/registration_modules.php"); $vars = array(...
  12. S

    Registration Script Optimization

    I want to make sure there is nothing substantial that I'm missing, security or performance, on my registration script. PHP scripts (adduser.php) <?php ## Validate Registration ## session_start(); include("../../scripts/modules.php"); $vars = array( 'username'=>$_POST['username']...
  13. S

    Service taking too much resources

    wudfsvc WPDBusEnum Wlansvc UxSms TrkWks SysMain PcaSvc Netman IPBusEnum HomeGroupListener AudioEndpointBuilder
  14. S

    Service taking too much resources

    Re: Strange Process Usage viewed with Process Explorer Is this enough information?
  15. S

    Service taking too much resources

    Strange Process Usage viewed with Process Explorer Ok, I looked into it a little more using Process Explorer and found something strange. My process svchost.exe is taking up [at the moment] 144k but all the underlying services add up to no more than 15k. Can anyone explain?
  16. S

    Service taking too much resources

    The automatic update for windows? 'Cuz that didn't change it.
  17. S

    Service taking too much resources

    I'm afraid neither of those worked. Both said they found nothing and svchost is still 100,000+k. Any other ideas?
  18. S

    Service taking too much resources

    "Blaster worm not found on your system" Anything else it could be?
  19. S

    Service taking too much resources

    I think I may have a virus, or the remnants of a virus because my process "svchost.exe" is taking upwards of 100,000 k and if I'm not mistaken, that is a bit too much. Can someone tell me how to find which service is taking up so much memory and fix this?
  20. S

    User Submission Video Embed Parse HTML tags

    I was also thinking about how forums use brakets to parse html. E.G. [font color=] = <span style="font-color:"> How does that work? I assume it uses preg_replace() or something? Or would using brackets be too complicated? My thought was [video url=] = <iframe src=> or <embed>. would that work?
Top