Jump to content

<?php echo $room; ?>


DJ24966

Recommended Posts

I know this is probably completely wrong, but I'm trying to make a script where the user can create a channel on my IRC server.

 

<?php
error_reporting(E_ALL ^ E_NOTICE);
$room = $_POST["room"];
?>
<form method="post" action="http://webchat.chatcore.org/chat/channel.aspx?value=<?php echo $room; ?>&member=XS803m">
  Room: <input name="room" type="text">
  <input type="submit">
</form>

 

That is what I have so far, How can I take the value of Room, and paste it between channel.aspx?value=

 

and

 

&member=XS803m

 

Thanks

 

Link to comment
https://forums.phpfreaks.com/topic/132243--/
Share on other sites

Nevermind, problem solved!

 

There are 2 different URL's you can connect to the channels with.

 

Here is new code.

 

<form method="GET" action="http://chatterupchat.webhop.org/chat/channel.aspx">
    <input type="hidden" name="member" value="XS803m">
  Room: <input name="value" type="text">
  <input type="submit">
</form>

 

I just had the wrong URL. Thanks Corbin!!!

 

Link to comment
https://forums.phpfreaks.com/topic/132243--/#findComment-687502
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.