Jump to content

[SOLVED] DO I put [$_POST] in the form.php or in a <?php ?> html page?


Monkuar

Recommended Posts

<?php

require_once "ipbsdk_class.inc.php";

$SDK =& new IPBSDK();

$message = $_REQUEST['email'] ;

  $title = $_REQUEST['title'] ;

$SDK->write_pm ("1", "$title", "Hello! This is a test message sent to user id 1");

 

 

?>

 

that's my form.php

 

and this is my html:

 

<form method="post" action="form.php">

  Email: <input name="email" type="text" /><br />

  Message:<br />

  <textarea name="title" rows="15" cols="40">

  </textarea><br />

  <input type="submit" />

</form>

 

Is this right?  because for some reason it's not working

 

help ? It just blanks page and it's not send :P

34dk8d3.gif

 

<?php

require_once "ipbsdk_class.inc.php";

$SDK =& new IPBSDK();

 

$SDK->write_pm ("1", "Hello!", "$message");

 

 

?>

 

That's my form.php

 

and this is my html:

 

<form method="post" action="form.php">

  Email: <input name="email" type="text" /><br />

  Message:<br />

  <textarea name="message" rows="15" cols="40">

  </textarea><br />

  <input type="submit" />

</form>

 

And when i do submit it has no errors but it doesnt send me the PM.. but if take out $message and put "hey biatch" it sends pm

 

what's wrongg lol

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.