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
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
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.