Jump to content

[SOLVED] PHP problem, with no problem!


Xasulfox

Recommended Posts

Well, I have made some code of which doesn't work, it looks like it should and my friend has checked it too, yet we see no problem.  ???

 

The form part goes:

 

<form action="EP" method="post" name="f" class="style1" id="f">
  <p>PASSWORD: 
    <input name="pas" type="password" id="pas" />
  </p>
  <p>
    <input name="sub" type="submit" id="sub" value="RUN" />
  </p>
</form>

 

The php bit that gets the code goes:

 

if(isset($_POST["pas"]))

*not "field"*

 

I only give the if bit *various secret codes and things below*

It won't get past the if() unless I put a '!' infront of the isset. This gives me the impression that the variable hasn't been set, I've tried it on 3 different servers and no luck on any.

 

Any help would be greatly accepted

 

-Xasulfox

Link to comment
https://forums.phpfreaks.com/topic/71997-solved-php-problem-with-no-problem/
Share on other sites

Ok put the form processing stuff in the file that the form is in then leave the action empty like action="" try that.

 

yeah good idea, that 'should' default to the POSTing page, but to make sure you might want to have the page directly reference itself, ala:

 

action='<?=$_SERVER['PHP_SELF'];?>'

Archived

This topic is now archived and is closed to further replies.

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