rawky1976 Posted August 13, 2007 Share Posted August 13, 2007 I've passed form data to a new INSERT page that inserts the data and informs success but just above the success message is diplayed: -  ...in IE and Firefox? Does anyone know what this means? I used the same code on a page without passing and that didn't display it? Link to comment https://forums.phpfreaks.com/topic/64739-solved-weird-text-above-insert-success-message/ Share on other sites More sharing options...
marcus Posted August 13, 2007 Share Posted August 13, 2007 Show some code. Link to comment https://forums.phpfreaks.com/topic/64739-solved-weird-text-above-insert-success-message/#findComment-322855 Share on other sites More sharing options...
Gho§t Posted August 13, 2007 Share Posted August 13, 2007 Looks like UTF-8 start-of-file code in a non UTF-8 document to me. Show some code. ^^Listen to this man! Link to comment https://forums.phpfreaks.com/topic/64739-solved-weird-text-above-insert-success-message/#findComment-322857 Share on other sites More sharing options...
rawky1976 Posted August 13, 2007 Author Share Posted August 13, 2007 Here's some code man! ... <h3 class="headerstyle">Users: -</h3> <div id="currentengineer"> <?php if(isset($_POST['adduser'])) { include 'config.php'; include 'opendb.php'; $firstname = $_POST['firstname']; $lastname = $_POST['lastname']; $ext = $_POST['ext']; $bleep = $_POST['bleep']; $exttel = $_POST['exttel']; $email = $_POST['email']; $query = "INSERT INTO users (user_fname, user_sname, user_ext, user_bleep, user_extno, user_email) VALUES ('$firstname', '$lastname', '$ext', '$bleep', '$exttel', '$email')"; mysql_query($query) or die('Error, insert query failed with error:'); include 'closedb.php'; } ?> <p />You have successfully entered the new user into the Service Management database, continue working using the links on the right</div> ... Link to comment https://forums.phpfreaks.com/topic/64739-solved-weird-text-above-insert-success-message/#findComment-322860 Share on other sites More sharing options...
lemmin Posted August 13, 2007 Share Posted August 13, 2007 It could be in config.php, opendb.php or closedb.php. Look for some echo's or print's in those files or post the code. Link to comment https://forums.phpfreaks.com/topic/64739-solved-weird-text-above-insert-success-message/#findComment-322865 Share on other sites More sharing options...
rawky1976 Posted August 13, 2007 Author Share Posted August 13, 2007 closedb.php: <?php mysql_close($conn); ?> config.php: <?php $dbhost = 'localhost'; $dbuser = 'root'; $dbpass = 'password goes here'; $dbname = 'db name goes here'; ?> opendb.php: <?php $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql'); mysql_select_db($dbname); ?> Link to comment https://forums.phpfreaks.com/topic/64739-solved-weird-text-above-insert-success-message/#findComment-322869 Share on other sites More sharing options...
lemmin Posted August 13, 2007 Share Posted August 13, 2007 Well, nevermind, its clearly not in those files. Just for fun, try putting a meta tag like this at the top of your page: <meta http-equiv="content-type" content="text/html; charset=UTF-8"> Link to comment https://forums.phpfreaks.com/topic/64739-solved-weird-text-above-insert-success-message/#findComment-322873 Share on other sites More sharing options...
Gho§t Posted August 13, 2007 Share Posted August 13, 2007 Where exactly is the "" located? At the very top of the page? Or in the middle somewhere? Try converting all of your files to ANSI format. Link to comment https://forums.phpfreaks.com/topic/64739-solved-weird-text-above-insert-success-message/#findComment-322874 Share on other sites More sharing options...
rawky1976 Posted August 13, 2007 Author Share Posted August 13, 2007 the weird text is directly above the success message, but nevermind because changing the encoding worked! thanks for your help!!! mark Link to comment https://forums.phpfreaks.com/topic/64739-solved-weird-text-above-insert-success-message/#findComment-322881 Share on other sites More sharing options...
Gho§t Posted August 13, 2007 Share Posted August 13, 2007 No problem Link to comment https://forums.phpfreaks.com/topic/64739-solved-weird-text-above-insert-success-message/#findComment-322885 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.