[solved] inserting data, but no echo?

  • Nem
  • Guru
  • Guru
  • Nem
  • Posts: 1243
  • Loc: UK

Post 3+ Months Ago

hi,
i have learnt so much this week. I created my own sql database and now just created a form that adds a database. All thanks to the internet.

Anyway,
I created a connect script, which i will use really for all the php pages that need it.

PHP Code: [ Select ]
 
<?php include="connect.php" ?>
 
 
 
 
  1.  
  2. <?php include="connect.php" ?>
  3.  
  4.  
  5.  
  6.  


Now on the page i use to add members, is a php script that i used to select the table i want to use and what each value on each text box will be.
I also added an echo, which im sure should be ok. What i want it to do is, show the echo after it has added the fields to the database. But instead it shows the echo on top of the page.

PHP Code: [ Select ]
 
<?php
 
include("connect.php");
 
 
 
$sql = "INSERT INTO members SET username='$user', password='$pass', email='$email', name='$name', age='$age', weopon='$weopon', map='$map', quote='$quote', image='$image'";
 
$query = mysql_query($sql) or die("Cannot query the database.<br>" . mysql_error());
 
 
 
echo "Database Updated.";
 
?>
 
 
  1.  
  2. <?php
  3.  
  4. include("connect.php");
  5.  
  6.  
  7.  
  8. $sql = "INSERT INTO members SET username='$user', password='$pass', email='$email', name='$name', age='$age', weopon='$weopon', map='$map', quote='$quote', image='$image'";
  9.  
  10. $query = mysql_query($sql) or die("Cannot query the database.<br>" . mysql_error());
  11.  
  12.  
  13.  
  14. echo "Database Updated.";
  15.  
  16. ?>
  17.  
  18.  


is there a code im missing?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Rabid Dog
  • Web Master
  • Web Master
  • User avatar
  • Posts: 3245
  • Loc: South Africa

Post 3+ Months Ago

Okay first up that INSERT statement looks a bit dodge.

This is what it should be
PHP Code: [ Select ]
 
<?php
 
include("connect.php");
 
 
 
$sql = "INSERT INTO members(username, password, email, name, age, weopon, map, quote, image)
 
      VALUES ('$user', '$pass','$email','$name', '$age', '$weopon', '$map','$quote','$image')";
 
$query = mysql_query($sql) or die("Cannot query the database.<br>" . mysql_error());
 
 
 
$output =  "New member added.";
 
?>
 
 
  1.  
  2. <?php
  3.  
  4. include("connect.php");
  5.  
  6.  
  7.  
  8. $sql = "INSERT INTO members(username, password, email, name, age, weopon, map, quote, image)
  9.  
  10.       VALUES ('$user', '$pass','$email','$name', '$age', '$weopon', '$map','$quote','$image')";
  11.  
  12. $query = mysql_query($sql) or die("Cannot query the database.<br>" . mysql_error());
  13.  
  14.  
  15.  
  16. $output =  "New member added.";
  17.  
  18. ?>
  19.  
  20.  


The operation it appears you are performing is an UPDATE which looks like this

PHP Code: [ Select ]
 
<?php
 
include("connect.php");
 
 
 
$sql = "UPDATE members SET username='$user', password='$pass', email='$email', name='$name', age='$age', weopon='$weopon', map='$map', quote='$quote', image='$image'
 
      WHERE primary_key = '$primaryKeyID'";
 
$query = mysql_query($sql) or die("Cannot query the database.<br>" . mysql_error());
 
 
 
$output =  "Database Updated.";
 
?>
 
 
  1.  
  2. <?php
  3.  
  4. include("connect.php");
  5.  
  6.  
  7.  
  8. $sql = "UPDATE members SET username='$user', password='$pass', email='$email', name='$name', age='$age', weopon='$weopon', map='$map', quote='$quote', image='$image'
  9.  
  10.       WHERE primary_key = '$primaryKeyID'";
  11.  
  12. $query = mysql_query($sql) or die("Cannot query the database.<br>" . mysql_error());
  13.  
  14.  
  15.  
  16. $output =  "Database Updated.";
  17.  
  18. ?>
  19.  
  20.  


Now because you have assigned the string to a variable you can echo it anywhere in the page!

if you only echo the result then obviously it will be at the top of the page

//NOTE TO ANYONE: Am i the only one that uses the reference to the database link anymore?

ie
PHP Code: [ Select ]
 
$DBLink = openDatabase();
 
$result = @mysql_query($query,$DBLink);
 
 
  1.  
  2. $DBLink = openDatabase();
  3.  
  4. $result = @mysql_query($query,$DBLink);
  5.  
  6.  


Just wondering if it is old school and not needed anymore.
  • Nem
  • Guru
  • Guru
  • Nem
  • Posts: 1243
  • Loc: UK

Post 3+ Months Ago

how do i hide the password in phpmyadmin?

and also, when i add a member, it duplicates itself after the next entry. And also the print option does not work, where it verifies that it has been added.
  • Rabid Dog
  • Web Master
  • Web Master
  • User avatar
  • Posts: 3245
  • Loc: South Africa

Post 3+ Months Ago

Nem wrote:
how do i hide the password in phpmyadmin?

and also, when i add a member, it duplicates itself after the next entry. And also the print option does not work, where it verifies that it has been added.


The only way I know of hidding it in phpMyAdmin (which is an admin program so I don't know why you would want to hide it) is to do an MD5 hash on it and save the value of the hash.BEWARE this cannot be undone so the handy dandy little "forgotten password?" link becomes useless.. There might be third party plug ins for encyrpting the password but I haven't worked with them.

The reason it is duplicating itself is because instead of up dating the user you are adding the new information. What print option?

Can you post the code you are using in this problem? I am making alot of assumptions here and that is generally not a good idea.
  • Nem
  • Guru
  • Guru
  • Nem
  • Posts: 1243
  • Loc: UK

Post 3+ Months Ago

PHP Code: [ Select ]
 
<? include("http://www.69kilobytes.co.uk/header.htm") ?>
 
<?php
 
include("connect.php");
 
 
 
$sql = "INSERT INTO members(username, password, email, name, age, weopon, map, quote, image)
 
       VALUES ('$user', '$pass','$email','$name', '$age', '$weopon', '$map','$quote','$image')";
 
$query = mysql_query($sql) or die("Cannot query the database.<br>" . mysql_error());
 
 
 
$output =  "New member added.";
 
?>
 
 
 
 
 
<table width="49%" height="240" border="0" align="center" cellpadding="0" cellspacing="0">
 
  <tr>
 
    <td height="20" colspan="2">
 
      <h3 align="center">please fill in below - you
 
        may edit later if you wish<br>
 
      </h3></td>
 
  </tr>
 
  <tr>
 
    <form name="member" method="post" action="<?php echo $PHP_SELF; ?>">
 
      <td width="46%">Username: </td>
 
      <td width="54%"><div align="right">
 
          <input name="user" type="text" id="user3" class="input">
 
        </div></td>
 
      <tr>
 
        <td width="46%">Password: </td>
 
        <td><div align="right">
 
            <input name="pass" type="text" id="pass4" class="input">
 
          </div></td>
 
      </tr>
 
      <tr>
 
        <td width="46%">Email: </td>
 
        <td><div align="right">
 
            <input name="email" type="type" id="email3" class="input">
 
          </div></td>
 
      </tr>
 
      <tr>
 
        <td width="46%">Name: </td>
 
        <td><div align="right">
 
            <input name="name" type="text" id="name3" class="input">
 
          </div></td>
 
      </tr>
 
      <tr>
 
        <td width="46%">Age: </td>
 
        <td><div align="right">
 
            <input name="age" type="text" id="age3" class="input">
 
          </div></td>
 
      </tr>
 
      <tr>
 
        <td width="46%">Country: </td>
 
        <td><div align="right">
 
            <input name="country" type="text" id="country3" class="input">
 
          </div></td>
 
      </tr>
 
      <tr>
 
        <td width="46%">Favorite Weopon:</td>
 
        <td><div align="right">
 
            <input name="weopon" type="text" id="weopon3" class="input">
 
          </div></td>
 
      </tr>
 
      <tr>
 
        <td width="46%">Favorite Map: </td>
 
        <td><div align="right">
 
            <input name="map" type="text" id="map3" class="input">
 
          </div></td>
 
      </tr>
 
      <tr>
 
        <td width="46%">Quote: </td>
 
        <td><div align="right">
 
            <input name="quote" type="text" id="quote3" class="input">
 
          </div></td>
 
      </tr>
 
      <tr>
 
        <td width="46%" height="22">Image: </td>
 
        <td><div align="right">
 
            <input name="image" type="text" id="image3" class="input">
 
          </div></td>
 
        <input type="submit" name="Submit" value="Submit" class="button">
 
    </form>
 
  </tr>
 
</table>
 
<? include("http://www.69kilobytes.co.uk/footer.htm") ?>
 
 
 
 
  1.  
  2. <? include("http://www.69kilobytes.co.uk/header.htm") ?>
  3.  
  4. <?php
  5.  
  6. include("connect.php");
  7.  
  8.  
  9.  
  10. $sql = "INSERT INTO members(username, password, email, name, age, weopon, map, quote, image)
  11.  
  12.        VALUES ('$user', '$pass','$email','$name', '$age', '$weopon', '$map','$quote','$image')";
  13.  
  14. $query = mysql_query($sql) or die("Cannot query the database.<br>" . mysql_error());
  15.  
  16.  
  17.  
  18. $output =  "New member added.";
  19.  
  20. ?>
  21.  
  22.  
  23.  
  24.  
  25.  
  26. <table width="49%" height="240" border="0" align="center" cellpadding="0" cellspacing="0">
  27.  
  28.   <tr>
  29.  
  30.     <td height="20" colspan="2">
  31.  
  32.       <h3 align="center">please fill in below - you
  33.  
  34.         may edit later if you wish<br>
  35.  
  36.       </h3></td>
  37.  
  38.   </tr>
  39.  
  40.   <tr>
  41.  
  42.     <form name="member" method="post" action="<?php echo $PHP_SELF; ?>">
  43.  
  44.       <td width="46%">Username: </td>
  45.  
  46.       <td width="54%"><div align="right">
  47.  
  48.           <input name="user" type="text" id="user3" class="input">
  49.  
  50.         </div></td>
  51.  
  52.       <tr>
  53.  
  54.         <td width="46%">Password: </td>
  55.  
  56.         <td><div align="right">
  57.  
  58.             <input name="pass" type="text" id="pass4" class="input">
  59.  
  60.           </div></td>
  61.  
  62.       </tr>
  63.  
  64.       <tr>
  65.  
  66.         <td width="46%">Email: </td>
  67.  
  68.         <td><div align="right">
  69.  
  70.             <input name="email" type="type" id="email3" class="input">
  71.  
  72.           </div></td>
  73.  
  74.       </tr>
  75.  
  76.       <tr>
  77.  
  78.         <td width="46%">Name: </td>
  79.  
  80.         <td><div align="right">
  81.  
  82.             <input name="name" type="text" id="name3" class="input">
  83.  
  84.           </div></td>
  85.  
  86.       </tr>
  87.  
  88.       <tr>
  89.  
  90.         <td width="46%">Age: </td>
  91.  
  92.         <td><div align="right">
  93.  
  94.             <input name="age" type="text" id="age3" class="input">
  95.  
  96.           </div></td>
  97.  
  98.       </tr>
  99.  
  100.       <tr>
  101.  
  102.         <td width="46%">Country: </td>
  103.  
  104.         <td><div align="right">
  105.  
  106.             <input name="country" type="text" id="country3" class="input">
  107.  
  108.           </div></td>
  109.  
  110.       </tr>
  111.  
  112.       <tr>
  113.  
  114.         <td width="46%">Favorite Weopon:</td>
  115.  
  116.         <td><div align="right">
  117.  
  118.             <input name="weopon" type="text" id="weopon3" class="input">
  119.  
  120.           </div></td>
  121.  
  122.       </tr>
  123.  
  124.       <tr>
  125.  
  126.         <td width="46%">Favorite Map: </td>
  127.  
  128.         <td><div align="right">
  129.  
  130.             <input name="map" type="text" id="map3" class="input">
  131.  
  132.           </div></td>
  133.  
  134.       </tr>
  135.  
  136.       <tr>
  137.  
  138.         <td width="46%">Quote: </td>
  139.  
  140.         <td><div align="right">
  141.  
  142.             <input name="quote" type="text" id="quote3" class="input">
  143.  
  144.           </div></td>
  145.  
  146.       </tr>
  147.  
  148.       <tr>
  149.  
  150.         <td width="46%" height="22">Image: </td>
  151.  
  152.         <td><div align="right">
  153.  
  154.             <input name="image" type="text" id="image3" class="input">
  155.  
  156.           </div></td>
  157.  
  158.         <input type="submit" name="Submit" value="Submit" class="button">
  159.  
  160.     </form>
  161.  
  162.   </tr>
  163.  
  164. </table>
  165.  
  166. <? include("http://www.69kilobytes.co.uk/footer.htm") ?>
  167.  
  168.  
  169.  
  170.  


The "connect.php" page is the simple putting in user name and password etc in so it can connect to the dbase.
  • Nem
  • Guru
  • Guru
  • Nem
  • Posts: 1243
  • Loc: UK

Post 3+ Months Ago

the webpage is here: http://www.69kilobytes.co.uk/cp/add_member.php
  • Rabid Dog
  • Web Master
  • Web Master
  • User avatar
  • Posts: 3245
  • Loc: South Africa

Post 3+ Months Ago

Okay here is the revised page
PHP Code: [ Select ]
 
<?php
 
include("http://www.69kilobytes.co.uk/header.htm");
 
$action = (empty($_GET['a'])) ? "" : $_GET['a'];
 
if ($action == "add"){
 
   include("connect.php");
 
    $sql = "INSERT INTO members(username, password, email, name, age, weopon, map, quote, image)
 
       VALUES ('$user', '$pass','$email','$name', '$age', '$weopon', '$map','$quote','$image')";
 
   $query = mysql_query($sql) or die("Cannot query the database.<br>" . mysql_error());
 
 
 
   $output =  '<table width="49%" height="240" border="0" align="center" cellpadding="0" cellspacing="0">
 
 <tr>
 
   <td height="20" colspan="2">
 
   You have been added successfully.
 
   </td>
 
 </tr>';
 
}else{
 
$output = '<table width="49%" height="240" border="0" align="center" cellpadding="0" cellspacing="0">
 
 <tr>
 
   <td height="20" colspan="2">
 
     <h3 align="center">please fill in below - you
 
       may edit later if you wish<br>
 
     </h3></td>
 
 </tr>
 
 <tr>
 
   <form name="member" method="post" action="add_member.php?a=add">
 
     <td width="46%">Username: </td>
 
     <td width="54%"><div align="right">
 
         <input name="user" type="text" id="user3" class="input">
 
       </div></td>
 
     <tr>
 
       <td width="46%">Password: </td>
 
       <td><div align="right">
 
           <input name="pass" type="text" id="pass4" class="input">
 
         </div></td>
 
     </tr>
 
     <tr>
 
       <td width="46%">Email: </td>
 
       <td><div align="right">
 
           <input name="email" type="type" id="email3" class="input">
 
         </div></td>
 
     </tr>
 
     <tr>
 
       <td width="46%">Name: </td>
 
       <td><div align="right">
 
           <input name="name" type="text" id="name3" class="input">
 
         </div></td>
 
     </tr>
 
     <tr>
 
       <td width="46%">Age: </td>
 
       <td><div align="right">
 
           <input name="age" type="text" id="age3" class="input">
 
         </div></td>
 
     </tr>
 
     <tr>
 
       <td width="46%">Country: </td>
 
       <td><div align="right">
 
           <input name="country" type="text" id="country3" class="input">
 
         </div></td>
 
     </tr>
 
     <tr>
 
       <td width="46%">Favorite Weopon:</td>
 
       <td><div align="right">
 
           <input name="weopon" type="text" id="weopon3" class="input">
 
         </div></td>
 
     </tr>
 
     <tr>
 
       <td width="46%">Favorite Map: </td>
 
       <td><div align="right">
 
           <input name="map" type="text" id="map3" class="input">
 
         </div></td>
 
     </tr>
 
     <tr>
 
       <td width="46%">Quote: </td>
 
       <td><div align="right">
 
           <input name="quote" type="text" id="quote3" class="input">
 
         </div></td>
 
     </tr>
 
     <tr>
 
       <td width="46%" height="22">Image: </td>
 
       <td><div align="right">
 
           <input name="image" type="text" id="image3" class="input">
 
         </div></td>
 
       <input type="submit" name="Submit" value="Submit" class="button">
 
   </form>
 
 </tr>
 
</table> ';
 
}
 
echo $output;
 
include("http://www.69kilobytes.co.uk/footer.htm");
 
?>
 
 
  1.  
  2. <?php
  3.  
  4. include("http://www.69kilobytes.co.uk/header.htm");
  5.  
  6. $action = (empty($_GET['a'])) ? "" : $_GET['a'];
  7.  
  8. if ($action == "add"){
  9.  
  10.    include("connect.php");
  11.  
  12.     $sql = "INSERT INTO members(username, password, email, name, age, weopon, map, quote, image)
  13.  
  14.        VALUES ('$user', '$pass','$email','$name', '$age', '$weopon', '$map','$quote','$image')";
  15.  
  16.    $query = mysql_query($sql) or die("Cannot query the database.<br>" . mysql_error());
  17.  
  18.  
  19.  
  20.    $output =  '<table width="49%" height="240" border="0" align="center" cellpadding="0" cellspacing="0">
  21.  
  22.  <tr>
  23.  
  24.    <td height="20" colspan="2">
  25.  
  26.    You have been added successfully.
  27.  
  28.    </td>
  29.  
  30.  </tr>';
  31.  
  32. }else{
  33.  
  34. $output = '<table width="49%" height="240" border="0" align="center" cellpadding="0" cellspacing="0">
  35.  
  36.  <tr>
  37.  
  38.    <td height="20" colspan="2">
  39.  
  40.      <h3 align="center">please fill in below - you
  41.  
  42.        may edit later if you wish<br>
  43.  
  44.      </h3></td>
  45.  
  46.  </tr>
  47.  
  48.  <tr>
  49.  
  50.    <form name="member" method="post" action="add_member.php?a=add">
  51.  
  52.      <td width="46%">Username: </td>
  53.  
  54.      <td width="54%"><div align="right">
  55.  
  56.          <input name="user" type="text" id="user3" class="input">
  57.  
  58.        </div></td>
  59.  
  60.      <tr>
  61.  
  62.        <td width="46%">Password: </td>
  63.  
  64.        <td><div align="right">
  65.  
  66.            <input name="pass" type="text" id="pass4" class="input">
  67.  
  68.          </div></td>
  69.  
  70.      </tr>
  71.  
  72.      <tr>
  73.  
  74.        <td width="46%">Email: </td>
  75.  
  76.        <td><div align="right">
  77.  
  78.            <input name="email" type="type" id="email3" class="input">
  79.  
  80.          </div></td>
  81.  
  82.      </tr>
  83.  
  84.      <tr>
  85.  
  86.        <td width="46%">Name: </td>
  87.  
  88.        <td><div align="right">
  89.  
  90.            <input name="name" type="text" id="name3" class="input">
  91.  
  92.          </div></td>
  93.  
  94.      </tr>
  95.  
  96.      <tr>
  97.  
  98.        <td width="46%">Age: </td>
  99.  
  100.        <td><div align="right">
  101.  
  102.            <input name="age" type="text" id="age3" class="input">
  103.  
  104.          </div></td>
  105.  
  106.      </tr>
  107.  
  108.      <tr>
  109.  
  110.        <td width="46%">Country: </td>
  111.  
  112.        <td><div align="right">
  113.  
  114.            <input name="country" type="text" id="country3" class="input">
  115.  
  116.          </div></td>
  117.  
  118.      </tr>
  119.  
  120.      <tr>
  121.  
  122.        <td width="46%">Favorite Weopon:</td>
  123.  
  124.        <td><div align="right">
  125.  
  126.            <input name="weopon" type="text" id="weopon3" class="input">
  127.  
  128.          </div></td>
  129.  
  130.      </tr>
  131.  
  132.      <tr>
  133.  
  134.        <td width="46%">Favorite Map: </td>
  135.  
  136.        <td><div align="right">
  137.  
  138.            <input name="map" type="text" id="map3" class="input">
  139.  
  140.          </div></td>
  141.  
  142.      </tr>
  143.  
  144.      <tr>
  145.  
  146.        <td width="46%">Quote: </td>
  147.  
  148.        <td><div align="right">
  149.  
  150.            <input name="quote" type="text" id="quote3" class="input">
  151.  
  152.          </div></td>
  153.  
  154.      </tr>
  155.  
  156.      <tr>
  157.  
  158.        <td width="46%" height="22">Image: </td>
  159.  
  160.        <td><div align="right">
  161.  
  162.            <input name="image" type="text" id="image3" class="input">
  163.  
  164.          </div></td>
  165.  
  166.        <input type="submit" name="Submit" value="Submit" class="button">
  167.  
  168.    </form>
  169.  
  170.  </tr>
  171.  
  172. </table> ';
  173.  
  174. }
  175.  
  176. echo $output;
  177.  
  178. include("http://www.69kilobytes.co.uk/footer.htm");
  179.  
  180. ?>
  181.  
  182.  


if you save this as add_member.php it should work
  • Nem
  • Guru
  • Guru
  • Nem
  • Posts: 1243
  • Loc: UK

Post 3+ Months Ago

im new to this language, and like learning it.

Would you be able to spare your time to explain what each change is doing and what has improved?

i dont want to copy n paste and end up not know whats going on.... i like to learn about web design :D
  • Rabid Dog
  • Web Master
  • Web Master
  • User avatar
  • Posts: 3245
  • Loc: South Africa

Post 3+ Months Ago

Okay first up.

You didn't have any form of check to see what the page should be doing.

That is what the action variable is for. It got the value from the URL sent by the form tag
Code: [ Select ]
<form method="post" action="add_member.php?a=add">


If the action is set then it means the user submitted the information, so we can process the request. At this point we include the connect file (because we don't need an open connection while the user is filling in the form)
We insert the data
PHP Code: [ Select ]
 
Mysql_query
 
 
  1.  
  2. Mysql_query
  3.  
  4.  

and set the output variable to say "Success"

If no action is set it means the user hasn't filled in the form, so we set the output variable to display the form.

after all those choices, we echo the output string and include the footer.

I noticed that you don't have any form of validation, (did the user fill in the required fields) so this means that the way it stands now the user can enter nothing and submit it

Make sense?

I personal would have done it a bit different. If you need a complete script let me know and I will create you a commented version and e-mail it to you.
  • Nem
  • Guru
  • Guru
  • Nem
  • Posts: 1243
  • Loc: UK

Post 3+ Months Ago

What sort of features does it have, and how is it more secure (if it is)?
  • Nem
  • Guru
  • Guru
  • Nem
  • Posts: 1243
  • Loc: UK

Post 3+ Months Ago

the form you created, is creating more and more blank rows.... Any suggestions?
  • Rabid Dog
  • Web Master
  • Web Master
  • User avatar
  • Posts: 3245
  • Loc: South Africa

Post 3+ Months Ago

Well it doesn't have any specific features just better data validation that is all.
  • Nem
  • Guru
  • Guru
  • Nem
  • Posts: 1243
  • Loc: UK

Post 3+ Months Ago

It works, i forgot to upload.

thank you for all your help.
  • Rabid Dog
  • Web Master
  • Web Master
  • User avatar
  • Posts: 3245
  • Loc: South Africa

Post 3+ Months Ago

Geez don't do that to me! Gave me heart failure!

Kidding. Was only a pleasure. Hope you learned something.

Just tested the page and there is a problem with the HTML. Just check that I have formatted it properly (after you submit)
  • Nem
  • Guru
  • Guru
  • Nem
  • Posts: 1243
  • Loc: UK

Post 3+ Months Ago

one thing i do not understand is, the form values.

PHP Code: [ Select ]
 
id="pass4"
 
 
  1.  
  2. id="pass4"
  3.  
  4.  


What is the id "pass4" when it is only meant to be pass?

It is same for all the others
  • Rabid Dog
  • Web Master
  • Web Master
  • User avatar
  • Posts: 3245
  • Loc: South Africa

Post 3+ Months Ago

Did you use dreamweaver to build this site (or another editor)?
  • Nem
  • Guru
  • Guru
  • Nem
  • Posts: 1243
  • Loc: UK

Post 3+ Months Ago

dreamweaver.

First i used notepad, then i transferred to dreamweaver to see how the layout of the tables look.
  • Rabid Dog
  • Web Master
  • Web Master
  • User avatar
  • Posts: 3245
  • Loc: South Africa

Post 3+ Months Ago

Okay this is a stab in the dark but I think dreamweaver has written the id attrib's for you, so to avoid conflict with other id's it has suffixed them with a number so they remain unique.

this is what I think, not to sure though.
  • Nem
  • Guru
  • Guru
  • Nem
  • Posts: 1243
  • Loc: UK

Post 3+ Months Ago

oh, this is a dreamweaver case.

*shouts out "DAMN YOU MACROMEDIA!"*
  • Nem
  • Guru
  • Guru
  • Nem
  • Posts: 1243
  • Loc: UK

Post 3+ Months Ago

oh, i notied now. I secificially remember that in notepad i didnt add the numbers. It was macromedia.... i hope they arent damanging nothing by doing this.
  • Rabid Dog
  • Web Master
  • Web Master
  • User avatar
  • Posts: 3245
  • Loc: South Africa

Post 3+ Months Ago

Yip that is why I stick to the good old hard coded way and my trusty F5 key.

Glad it was resolved
  • Nem
  • Guru
  • Guru
  • Nem
  • Posts: 1243
  • Loc: UK

Post 3+ Months Ago

Amen

Post Information

  • Total Posts in this topic: 22 posts
  • Users browsing this forum: No registered users and 60 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.