Jump to content
xisto Community

Tyssen

Members
  • Content Count

    1,159
  • Joined

  • Last visited

Posts posted by Tyssen


  1. I tried to convert my page to php, by I messed it up big time, and couldn't figure it out, so I'm trying again. Should I be getting the page to work in php first, and then try to add the database? Or do it all at once? What do you find works best?

    Get the page working in PHP first and then when that's right, you can replace actual values with those that come from the database.

    One thing my teacher does say is that it doesn't matter what means you take to get the job done with a client.  So long as it works in the end, the client isn't going to know/care depending on how much they know about programming.

    That's not strictly true. To say it doesn't matter what means you use is, quite frankly, irresponsible.
    For instance, you could set up a contact form on a site and through lax programming, leave it open to email header injection attacks so that your client's mail server gets used to transfer loads of spam.
    The client may never find about it but could gain a bad reputation as a spammer because the mail all appears to be coming from his/her email address. Or the client's web host may suspend or terminate the account due to the abuse.
    So, if you are doing paid work for a client, it is in your best interests to know as much as you can about what you're doing if you want to avoid having to pay to fix ealier errors, or worse still, be sued due to lost business caused by your oversights.

  2. but if you're going to use "../index.php?bg=FF0000" in the above statement, anyone can change it, by just typing a different color in hex. that could mess up the entire design of the webpage. what if i don't want the users to change the page's colors directly from the  url. instead i want them to choose from different color schemes that is specified in my web page.

    In that case you should test your $_GET against an array of permissible values and only execute the script if the value passed from the querystring is in the array.

  3. So I assumed that was the problem and warned against it.  It certainly isn't the fault of my graphics, if that is what you are implying.

    Well, no, actually it is. I can't see your graphics and I've looked on two different PCs with different firewall configurations. And when I paste the URL of one of your graphics into my browser I get a 404 - which means it doesn't exist on your server at that location.
    I'm sorry if you think I'm 'raining on your parade' but you've got errors on your site that need addressing.

  4. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

    BUT when I use the validator it says

    This page is not Valid HTML 4.0 Transitional!

    I am validating http://forums.xisto.com/no_longer_exists/

     

    Well, if having your page validate is important to you, you're gonna have to address the errors.

    By the way, just a comment about this:

     

    If you are behind a "FIREWALL" and the graphics are not showing, you may have to adjust your settings or take it down to view this site.

    Who do you think is going to go to the trouble of turning their firewall off just to see graphics on your site? Why can't you get your graphics to view properly despite firewall settings? No-one else seems to have any trouble.

  5. If you're designing in XTHML with a strict doctype, you can't have any background information in your HTML. You have to assign a class or ID to the table or cell instead and then put the background info in your CSS. It's not that scary really. Instead of

    <table cellspacing=0 cellpadding=1 width="100%" bgcolor="#D3C177" background="gardenia/gardenia_goldstrip.jpg" border=0>
    you'd do this:

    <table id="whatever">/* CSS */table#whatever {width: 100%;background: #D3C177" url(gardenia/gardenia_goldstrip.jpg) no-repeat;border: none;border-collapse: collapse;}table#whatever td { padding: 1px; }


  6. <td><input type="checkbox" name="?" value="<% =(rs.fields("primaryKey")) %>"></td>
    If you want the checkbox to be selected based on a certain parameter, it'd be:

    <td><input type="checkbox" name="?" value="<% =(rs.fields("primaryKey")) %>" <% if (rs.fields("primaryKey") = something then response.write "checked" end if %>></td>

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.