Jump to content

Undefined index: Action in C:\xampp\htdocs\index.php on line 56


Gson24

Recommended Posts

I really dont no what the problem is and im new here so i dont no if this is the right place to put this but im trying to make a registration page for my server and when i bring it up it says Undefined index: action in C:\xampp\htdocs\index.php on line 56  and idk what to do >.<

this is the line that has the problem

 

if($_POST['action']!="signup")

 

so hopefully u guys could help me :/ Im using xampp btw

Link to comment
Share on other sites

Yay it worked thanx but now i have this problem

 

 

New XAMPP security concept:

 

Access to the requested object is only available from the local network.

 

This setting can be configured in the file "httpd-xampp.conf".

 

 

Idk what to do now can u help me? >.<

Link to comment
Share on other sites

This is what my httpd.xampp looks like

 

 

#

# XAMPP settings

#

 

<IfModule env_module>

    SetEnv MIBDIRS "/xampp/php/extras/mibs"

    SetEnv MYSQL_HOME "\\xampp\\mysql\\bin"

    SetEnv OPENSSL_CONF "/xampp/apache/bin/openssl.cnf"

    SetEnv PHP_PEAR_SYSCONF_DIR "\\xampp\\php"

    SetEnv PHPRC "\\xampp\\php"

    SetEnv TMP "\\xampp\\tmp"

</IfModule>

 

#

# PHP-Module setup

#

LoadFile "/xampp/php/php5ts.dll"

LoadModule php5_module modules/php5apache2_2.dll

 

<FilesMatch "\.php$">

    SetHandler application/x-httpd-php

</FilesMatch>

<FilesMatch "\.phps$">

    SetHandler application/x-httpd-php-source

</FilesMatch>

 

#

# PHP-CGI setup

#

#<FilesMatch "\.php$">

#    SetHandler application/x-httpd-php-cgi

#</FilesMatch>

#<IfModule actions_module>

#    Action application/x-httpd-php-cgi "/php-cgi/php-cgi.exe"

#</IfModule>

 

 

<IfModule php5_module>

    PHPINIDir "/xampp/php"

</IfModule>

 

<IfModule mime_module>

    AddType text/html .php .phps

</IfModule>

 

ScriptAlias /php-cgi/ "/xampp/php/"

<Directory "/xampp/php">

    AllowOverride None

    Options None

    Order deny,allow

    Deny from all

    <Files "php-cgi.exe">

        Allow from all

    </Files>

</Directory>

 

<Directory "/xampp/cgi-bin">

    <FilesMatch "\.php$">

        SetHandler cgi-script

    </FilesMatch>

    <FilesMatch "\.phps$">

        SetHandler None

    </FilesMatch>

</Directory>

 

<Directory "/xampp/htdocs/xampp">

    <IfModule php5_module>

    <Files "status.php">

    php_admin_flag safe_mode off

    </Files>

    </IfModule>

    AllowOverride AuthConfig

</Directory>

 

<IfModule alias_module>

    Alias /security "/xampp/security/htdocs/"

    <Directory "/xampp/security/htdocs">

        <IfModule php5_module>

    <Files "xamppsecurity.php">

    php_admin_flag safe_mode off

    </Files>

        </IfModule>

        AllowOverride AuthConfig

  </Directory>

 

    Alias /licenses "/xampp/licenses/"

    <Directory "/xampp/licenses">

        Options +Indexes

        <IfModule autoindex_color_module>

            DirectoryIndexTextColor  "#000000"

            DirectoryIndexBGColor "#f8e8a0"

            DirectoryIndexLinkColor "#bb3902"

            DirectoryIndexVLinkColor "#bb3902"

            DirectoryIndexALinkColor "#bb3902"

        </IfModule>

  </Directory>

 

    Alias /phpmyadmin "/xampp/phpMyAdmin/"

    <Directory "/xampp/phpMyAdmin">

        AllowOverride AuthConfig

    </Directory>

 

    Alias /webalizer "/xampp/webalizer/"

    <Directory "/xampp/webalizer">

        <IfModule php5_module>

    <Files "webalizer.php">

    php_admin_flag safe_mode off

    </Files>

        </IfModule>

        AllowOverride AuthConfig

    </Directory>

</IfModule>

 

#

# New XAMPP security concept

#

<LocationMatch "^/(?i:(?:xampp|licenses|phpmyadmin|webalizer|server-status|server-info))">

    Order deny,allow

    #Deny from all

    Allow from 5.181.6.158\8

    ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var

</LocationMatch>

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.