Hello everybody and thanks in advance for any help you can provide.

I am currently working on transitioning a mysql project to mssql and php v 5.3.3

I am having trouble with

<form action="{$_SERVER['PHP_SELF']}" method="post">

when I look at the source code of a working page... Say login.php
the Formaction would read.

<form action="login.php" method="post">

But when I look at the source code of my page not working I see

<form action="{$_SERVER['PHP_SELF']}" method="post">

upon submitting the form I get a 404 page that reads.

The requested URL /{$_SERVER['PHP_SELF']} was not found on this server.

I've compared my ini pages with those of the working environment
and can't see what the problem is.

Does anyone have any ideas?

again, thanks in advance.

Recommended Answers

All 2 Replies

<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">

Thanks Zero13.
I thought I tried that, but I guess not.

thanks again!

Solved!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.