Jump to content

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


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

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.