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
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'];?>'

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.