+ Reply to Thread
Results 1 to 7 of 7

Thread: PHP form

  1. #1
    cibma is offline x10Hosting Member cibma is an unknown quantity at this point
    Join Date
    Jan 2010
    Posts
    1

    PHP form

    Does anyone gets PHP response form to work correctly? I'm wondering if I have to add some script to server that doesn't exist there. I trust my PHP scripts are ok

  2. #2
    vishal's Avatar
    vishal is offline -::-X10 Guru-::- vishal has a brilliant futurevishal has a brilliant future
    Join Date
    Nov 2009
    Location
    INDIA
    Posts
    5,250

    Re: PHP form

    PHP on X10 server works very well for me.Wht kind of scripts r u using
    Regards ~ Vishal
    Giving Reputation (at bottom of my post ) is the best way to encourage the person who helped you on forums.

  3. #3
    amplec's Avatar
    amplec is offline x10Hosting Member amplec is an unknown quantity at this point
    Join Date
    Dec 2009
    Posts
    9

    Re: PHP form

    I have got them without any problem. Actually, what script do you need to run?

  4. #4
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,267

    Re: PHP form

    Quote Originally Posted by cibma View Post
    Does anyone gets PHP response form to work correctly? I'm wondering if I have to add some script to server that doesn't exist there. I trust my PHP scripts are ok
    x10hosting has some PHP functions disabled for security reasons.

    But some scripts work fine on a development machine (home) because the settings on those machine are extremely lax and they do not work on a secure setup.

    If you could post the script in question, we could help you. Include any error messages you get and generally how your scripts fail on x10hosting.

    But a small bet. Your script assumes register_globals is enabled.
    Nothing is always absolutely so.

  5. #5
    xgreenberetx is offline x10Hosting Member xgreenberetx is an unknown quantity at this point
    Join Date
    Oct 2009
    Posts
    57

    Re: PHP form

    Is there a work around for register_globals?

  6. #6
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,267

    Re: PHP form

    Quote Originally Posted by xgreenberetx View Post
    Is there a work around for register_globals?
    You assume it is off when you write the script.
    The default value was changed to OFF in PHP 4.2 (around 2002).
    The feature is deprecated in PHP 5.3 and totally removed in PHP 6.

    If you have a script that relies on it, you have to go in and change it so it uses $_POST etc. It usually is not that hard to do. If you have form fields named 'name', 'address' etc, you just specifically use

    if( isset( $_POST['name'] )){
    $name = $_POST['name'] ;
    }

    if( isset( $_POST['address'] )){
    $address = $_POST['address'] ;
    }

    etc.

    instead of having $name and $address poplulated for you.
    Last edited by descalzo; 01-14-2010 at 05:37 PM.
    Nothing is always absolutely so.

  7. #7
    xgreenberetx is offline x10Hosting Member xgreenberetx is an unknown quantity at this point
    Join Date
    Oct 2009
    Posts
    57

    Re: PHP form

    Thnx for the info ;)

+ Reply to Thread

Similar Threads

  1. Replies: 14
    Last Post: 06-12-2010, 04:35 PM
  2. php form
    By garrensilverwing in forum Programming Help
    Replies: 10
    Last Post: 04-27-2009, 10:09 PM
  3. currently have an application pending php
    By biomasti in forum Free Hosting
    Replies: 1
    Last Post: 09-03-2008, 02:58 PM
  4. php contact form in flash not working.
    By eddbrown in forum Free Hosting
    Replies: 2
    Last Post: 08-13-2008, 04:16 PM
  5. Sigo con problemas con phpbb2
    By reciecho in forum Soporte
    Replies: 7
    Last Post: 10-20-2007, 07:28 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers