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 Quote Link to comment Share on other sites More sharing options...
genericnumber1 Posted November 11, 2008 Share Posted November 11, 2008 no.. that's right... Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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!!! Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.