Jump to content

Recommended Posts

Hi, I have 2 seperate php files, and i want my $_POSt["fname"] To go into both of them, For Example:

 

Goto: http://ucp.south-westrp.com/UCP.php

 

Type Username: Comptons_Eazy_E

And Password: Test

 

Now When your inside the UCP, goto Change Password, and type something. But it wont change! I have a feeling that $_POSt["fname"] is not in my ChangePass.php Can anyone help?

Link to comment
https://forums.phpfreaks.com/topic/183075-_post/
Share on other sites

Can you not check and see if $_POSt["fname"] is in ChangePass.php?

 

This is the code(Changepass.php):

<html>
<head>

<?php
    $sql = mysql_connect("BLOCKED", "BLOCKED", "BLOCKED");
    mysql_select_db(BLOCKED, $sql);
    $fname = $_POST["fname"];
    $Newp = $_POST["np"];
    mysql_query("UPDATE players SET Password = $Newp WHERE Name = '$fname'");
?>
</head>
<body>
<a href="url">http://ucp.south-westrp.com/login.php</a> 
<p><center><b>_</center></p>
<body background="http://img43.imageshack.us/img43/7428/hometu.jpg">
</body>
</html>

Link to comment
https://forums.phpfreaks.com/topic/183075-_post/#findComment-966237
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.