Jump to content

MarkT

Members
  • Posts

    168
  • Joined

  • Last visited

Everything posted by MarkT

  1. In the form: <input type="checkbox" name="check" value="yes"> In PHP:<?PHP $check = $_POST['check']; if($check == "yes") { Do this } else { Do that } ?> Should work.
  2. You are able to use PHP, Add <?PHP include "{LOCATION OF FILE & EXTENSION}" ?> Then in that text file, you can write your content. If you know PHP Well, I recommend you use a database and MySQL Queries so that you can use a form or textarea to update the content.
  3. Can you upload pictures please of your current design and what you want it to look like. This way I will be able to help you.
  4. It looks fine to me? What do you mean It's not aligned properly? I can't see a difference except from the size.
  5. Alright, I get the code. But how do I set my SQL query to save the filename in the database?
  6. I've tried, but the file upload script is confusing me, Can you explain it please? Where to put details/upload directory etc.
  7. Hello, Can anyone show me a demo of a code, I'm looking for a form that uses text and file upload. I need a form that has details such as title and content, but I also want an image upload where it saves the file to my FTP server in a folder called Uploads and then it saves the filename and extension to the database, along with the other details from the form. Can anyone give me the code and explain it please! Thanks in advance.
  8. I suggest changing your action to a PHP file and using a PHP Mail to send details from a 'POST' form for PHP. See W3schools.com PHP Tutorial on PHP Mail.
  9. MarkT

    HTML

    Try selecting all files as a format, and naming your file: index.html Also include daveJ's suggestion of making your <!DOCTYPE html> readable to a browser...
  10. MarkT

    Portfolio

    Davej: I believe he wants a portfolio to show off his HTML websites. I suggest using a layout like Dreamweaver, indentation, it can be used for tags ie.    <table> <tr> <td>Hi</td> <td>Hi</td> </tr></table> Makes it look neater as you can tell where each thing ends. Hope this helps.
  11. Can you upload a picture of what your current code looks like, then I'll be able to tell you what code you need to add.
  12. You should use a:link { When no action } a:hover { On Hover } a:visited { Previously been clicked } a:active { When you're on that page } Hope this helps.
  13. Hostgator are reliable - Cheap and you can use a FTP Client such as FileZilla to upload your files. If not you could use hosting24 (paid) which is provided by 000webhost (free), they both allow ftp clients such as FileZilla. Most hosts give you an option to use drag/drop website builders or you can upload your own using FTP details which can normally be located in the control panel.
  14. Solved. For future reference to anyone else: I had value="" then value="Test" therefore it used the first value. Use Value="" in your input field.
  15. Hi, This problem has repeatedly bugged me, with a HTML form, using text input, is there a way to set a default value so if nothing has been written in that box, it reverts to a default value which has been predefined? Cheers.
  16. Yeh thats above, didnt copy that bit, but then it says "Expects to be resource"
  17. Creating a new administration panel / CMS!

  18. Hello, I currently have the following code; <tr><td>ID</td><td>First Name</td><td>Surname</td><td>Form</td><td>Reason</td></tr><?PHP mysql_connect("*******","*****","****","******");$sql = mysql_query("SELECT * from bans");?> And basically, I've tried to echo it in a table. so that it uses the results from SQL. in the form $sql['id'] $sql['name'] $sql['surname'] $sql['form'] $sql['reason'] In a seperate td So <td> $sql['id']</td> for example, so that it shows all of the bans in a seperate row per ban. Please can somebody help! and supply me with the correct code I should put in the PHP File. Cheers.
  19. I always correct that when I start coding a new stylesheet in CSS. Especially, if it's a responsive design... Good Luck with your CSS.
  20. To be honest, in your login script, create a code, that updates online to 1, and then on the logout script, set it back to 0. Also, I would then create an SQL query, example; $online = mysql_query("Select online FROM users where username={$_SESSION['username']}") if($online == 1) {echo "Online"} else {echo "Offline"} or something along that lines. Hope this helped!
  21. I would say, if yuo want images on top, use z-index. Else, i would use padding, and fix it that way, utilising the auto capability.
  22. To be honest, I prefer IIS, it's a lot easier to use as it has a management panel for you to use for rewrite rules. I'll have a look, but i suggest you look at some mod_rewrite tutorials and get a basic knowedge before you try to do advanced rules, for example, not allowing images etc.
  23. MarkT

    [PHP] Problem

    I have fixed the $_SESSION['id'] now, for some reason I put the array to come back as $_SESSION['id2']
  24. MarkT

    [PHP] Problem

    Am i right to use mysql_fetch_assoc, and did I use it the right way etc?
  25. Can you post your CSS/HTML code so I can take a look. Cheers
×
×
  • Create New...