DJ24966 Posted November 11, 2008 Share Posted November 11, 2008 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 More sharing options...
genericnumber1 Posted November 11, 2008 Share Posted November 11, 2008 no.. that's right... Link to comment https://forums.phpfreaks.com/topic/132243--/#findComment-687473 Share on other sites More sharing options...
DJ24966 Posted November 11, 2008 Author Share Posted November 11, 2008 Hmm, it doesn't seem to work though. It never seems to echo the name within the URL, so it just tries joining a channel with no name. Link to comment https://forums.phpfreaks.com/topic/132243--/#findComment-687474 Share on other sites More sharing options...
corbin Posted November 11, 2008 Share Posted November 11, 2008 Try: <form method="GET" action="http://webchat.chatcore.org/chat/channel.aspx"> <input type="hidden" name="member" value="XS803m"> Room: <input name="value" type="text"> <input type="submit"> </form> No PHP necessary. Link to comment https://forums.phpfreaks.com/topic/132243--/#findComment-687477 Share on other sites More sharing options...
DJ24966 Posted November 11, 2008 Author Share Posted November 11, 2008 Well, that allows the room name to show up, however, it won't actually go in. It's like the &member area still has an issue. Here is the link for you to see exactly what I'm talking about. http://chatterup.webhop.net/site/?n=pages/create2 Thanks Link to comment https://forums.phpfreaks.com/topic/132243--/#findComment-687482 Share on other sites More sharing options...
DJ24966 Posted November 11, 2008 Author Share Posted November 11, 2008 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 More sharing options...
corbin Posted November 11, 2008 Share Posted November 11, 2008 Glad you figured it out, and no problem. Link to comment https://forums.phpfreaks.com/topic/132243--/#findComment-687504 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.