fullyloaded Posted February 13, 2007 Share Posted February 13, 2007 hi i have this shoutbox im trying to edit what i want to do is change this bit of code so the textbox for your name is not a text box but just the name and still work lol hope you know what im talking about and also im trying to ad smileys to it any idea how thanks <input name="name" value="Your Name" onclick="this.value=''"> <?php $file = "shout.dat"; $open = fopen($file, "a"); $name = $_POST['name']; $comment= $_POST['comment']; $url = $_POST['url']; if($name != "" || $comment != "") { if($url != ""){ fwrite($open, "<b><a href='$url'>$name</a></b>>>");} else{fwrite($open, "$name>>"); } fwrite($open, "$comment<hr>"); } echo "<script>window.location='read.php#bot'</script>"; ?> Link to comment https://forums.phpfreaks.com/topic/38242-help-with-shoutbox/ Share on other sites More sharing options...
trq Posted February 13, 2007 Share Posted February 13, 2007 hope you know what im talking about Sorry, you've lost me. Link to comment https://forums.phpfreaks.com/topic/38242-help-with-shoutbox/#findComment-183205 Share on other sites More sharing options...
fullyloaded Posted February 13, 2007 Author Share Posted February 13, 2007 hi ok there is 3 textbox one where you put your name 2 website 3 message now the one for your name i want to take the textbox out and have just a name and leave the other 2 textboxes the way they are Link to comment https://forums.phpfreaks.com/topic/38242-help-with-shoutbox/#findComment-183207 Share on other sites More sharing options...
redarrow Posted February 13, 2007 Share Posted February 13, 2007 Post the whole code then. Link to comment https://forums.phpfreaks.com/topic/38242-help-with-shoutbox/#findComment-183210 Share on other sites More sharing options...
fullyloaded Posted February 13, 2007 Author Share Posted February 13, 2007 hi here you go <iframe src="read.php#bot" name="read" width="63%" height="30%"></iframe> <form method="POST" action="say.php" target="read"> <input name="name" value="Your Name" onclick="this.value=''"><br> <input name="url" value="Your Website" onclick="this.value=''"><br> <input name="comment" value="Your Message" onclick="this.value=''"><br> <input type="submit" value="punch it" style="font-size: 10px"><input type="button" onclick="read.location=read.location" value="Refresh" style="font-size: 10px"> </form> <?php $file = "shout.dat"; $open = fopen($file, "a"); $name = $_POST['name']; $comment= $_POST['comment']; $url = $_POST['url']; if($name != "" || $comment != "") { if($url != ""){ fwrite($open, "<b><a href='$url'>$name</a></b>>>");} else{fwrite($open, "$name>>"); } fwrite($open, "$comment<hr>"); } echo "<script>window.location='read.php#bot'</script>"; ?> Link to comment https://forums.phpfreaks.com/topic/38242-help-with-shoutbox/#findComment-183212 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.