php header

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
zura
Forum Newbie
Posts: 9
Joined: Mon Oct 17, 2011 1:04 am

php header

Post by zura »

Hi...
How can i send $e on this url: http://smsc.ru/sys/send.php
Header(); does not works. (Cannot modify header information - headers already sent by (output started at /home/...))

Code: Select all

<?php
ob_start();
$nomeri = $_POST['operator'].$_POST['cellular'];
$messageText = $_POST['message'];
$e = "?login=zzz&psw=zzz&phones=".$nomeri."&mes=".$messageText;
ob_end_flush();
?>
Thanks for help.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: php header

Post by Benjamin »

:arrow: Moved to PHP - Code
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: php header

Post by Celauran »

User avatar
flying_circus
Forum Regular
Posts: 732
Joined: Wed Mar 05, 2008 10:23 pm
Location: Sunriver, OR

Re: php header

Post by flying_circus »

zura wrote:Hi...
How can i send $e on this url: http://smsc.ru/sys/send.php
Header(); does not works. (Cannot modify header information - headers already sent by (output started at /home/...))

Code: Select all

<?php
ob_start();
$nomeri = $_POST['operator'].$_POST['cellular'];
$messageText = $_POST['message'];
$e = "?login=zzz&psw=zzz&phones=".$nomeri."&mes=".$messageText;
ob_end_flush();
?>
Thanks for help.

What exactly are you trying to do? It looks like you are trying to append a querystring onto a uri. Are you trying to forge a post request to another site?

You can use cURL, you can use a standard HTML form, or you can craft a request using something like telnet. I think even firebug will let you go in an edit html elements inline.
Post Reply