Jump to content

$_POST


Comptons_Eazy_E

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

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.