Jump to content

[SOLVED] NOT POSTING POST DATA


dewey_witt

Recommended Posts

About a month ago my HD went BB  :-\ I have just set up a new machine everything works great eccept My server (appache2.2) will for some reason not send post data. I dont know whether its in the php.ini or httd.comf for appache. DB connections work perfect I can inset and retreive data fine. Just when i create a form to post to another page the next page receives no post data what so ever.  >:( any hints as to what i am doing wrong TELL ME PLZ!!!!!!

Link to comment
Share on other sites

OK Below is the form - the html. Its just a basic form. When it gets to the next page where the data is actualy handled.... there is no post data to handle.  :-\ i dun get it. Its not just this form. Its ever form i create.

 

<form action="/DATABASE SCRIPTS/mkacct.php" method="post" enctype="multipart/form-data" name="signup" onsubmit="return checkCheckBox(this)">
<input name="user" type="text" size="19" maxlength="19" />
<input name="pass" type="password" size="19" maxlength="19" />
<input name="pass2" type="password" size="19" maxlength="19" />
<input name="char" type="text" size="19" maxlength="19" />
<input name="mail" type="text" size="19" maxlength="19" />
<textarea name="agreement" readonly="readonly" cols="52" rows="10"><? echo "$agreement" ?></textarea>
<input type="checkbox" value="0" name="agree">
<input name="submit" type="submit" value="Signup" />
<input name="reset" type="reset" value="Reset" />
</form>

Link to comment
Share on other sites

Herer is my handeling. As you can see this code is also good. Im pretty dang sure its not my coding.

Im not that much of a newb XD if you find something let me know, but im relativly sure that this is in the php.ini or http.conf file somewhere. PLZ HELP ME!!!!!!!  :'(

<?php


$user = $_POST['user'];
$mail = $_POST['mail'];
$pass = $_POST['pass'];
$char = $_POST['char'];
$ip = $_SERVER['REMOTE_ADDR'];


    
define("MYSQL_HOST", "localhost");
define("MYSQL_USER", "root");
define("MYSQL_PASS", "");
define("MYSQL_DB", "");
//make the db conection
$conn = mysql_connect("".MYSQL_HOST."", "".MYSQL_USER."", "".MYSQL_PASS."") or die(mysql_error());
mysql_select_db("".members."",$conn) or die(mysql_error());

$sql = "INSERT INTO members (username, email, password, charName, ip) VALUES ('".$user."', '".$mail."', '".$pass."', '".$char."', '".$ip."');";
$result = mysql_query($sql, $conn) or die(mysql_error());
//echo db created and make members table
if($result) {
header("Thanx.php");
}else {
echo"there was a problem with signup. please see your guild leader.";


}


?>


Link to comment
Share on other sites

ok lololol.... their is post data being passed to the handeling script........ yet the php just isnt picking up what is being laid down. Im not sure why but i cant get any of the post info. This is how i have tried to retrieve and desply it.

<?
$user = $_POST['user'];
echo "$user";
?>

 

 

And still nothing......... boggled  :D

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.