Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by Natechs

  1. Personally I use HTML-Kit. Very easy program to use and free too!
  2. You could also use a service like Mobify to design one for you.
  3. Either works. Personally I prefer PHP because it is easier. Just makes sure your server has support for each. (ASP.NET is only supported on a Windows server)
  4. Natechs

    Web Hosting

    Yes it does. I use it to rewrite my WordPress permalinks. Look here, here and here for more info!
  5. Here is one tip: NEVER redirect to a mobile site without the user's permission. It will tick the user off because they might want to see your full site. Include this little bit of code and you will be all right. <script type="application/javascript"><!--if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {var answer = confirm("Would you like to be redirected to the iPhone version of YOUR SITE NAME?") if (answer){ location.href='THE MOBILE SITE ADDRESS HERE'; } else{ alert("Hope you enjoy the site!") }}--></script> Chris Coyier did a screencast that you could take a look at: Screencast 38. I have used that a lot in designing for the iPhone!
  6. Natechs

    Web Hosting

    I like e4games would recommend Byethost. I have been with them for almost a year now and have been absolutely fantastic! Great support, lots of pre-installed software and great prices.
  7. Natechs

    Printer Question

    JavaScriptDo this: <a href="java script:window.print();">Print</a>
  8. JavaScript is processed by the browser. So yes you can.
  9. Natechs


    <?php echo $_SERVER['PHP_SELF']; ?> gets the current path of the script. If that is what you mean.
  10. I am always here to help! Email me any more questions!
  11. Not really. Some hosts limited your bandwidth (the amount of space that people can use to view your site over a certain period). Try getting one that allows at least 5 GB of transfer a month. Media Temple is good and all but start small first. Let people view your site first. Let it get more attention. ;-)As for your question on getting files to a server, people have devised programs that allow you to send your files to a host via a method called FTP (File Transfer Protocol). Kinda like HTTP (HyperText Transfer Protocol), the way you and I see web pages. You can search Google for free FTP programs. I have used FileZilla and it worked great. I currently use FireFTP, a Firefox plugin that works right in the browser! The webhost should tell you what their FTP server's name is and your username/password as well. Just plug that in to the program and upload your files to the host! More reading on FTP
  12. No. A variable can be assigned a value or be null. Like so: <?php$subject = ""; // $subject is null as in no value$subject = "Subscribe!"; // now $subject has a value!?>
  13. Just type in Google "free webhost". I have heard good things about 000webhost but I haven't used them. I use Byethost. Then upload your file via FTP or an online upload client provided by your host!
  14. You have a form inside a form. You can't do that. For your form, you can do this: <form action="newupdatedelete.php" method="post"><center><strong>Type in your Admission Number : <input type="text" name="admin" /></strong></center><br/><br/><center><input type="submit" value="SUBMIT" name="submit" /><input type="submit" value="DELETE" name="submit" /></center></form> Then for newupdatedelete.php <?phpif($_POST['submit'] == "SUBMIT") { // SUBMIT the post}elseif($_POST['submit'] == "DELETE") { // DELETE stuff here}?> Also, as general advice, try to avoid using presentation tags such as <center>. Use CSS for that.
  15. Thanks. I don't want people putting scripts in there. But someone puts in an anchor the link is escaped to. But both your options help tremendously. Thanks!
  16. WordPress is probably the best option. Wide spread use = much support. It is also very easy to use and not very hard to develop for!
  17. Natechs

    My web site

    The contact page was updated with some info and a new form made by me!
  18. I want to filter my contact form's input for HTML but I can't figure out how to do that! Could someone tell me how to do that.
  19. You can't have an image inside a div tag. You could do this:HTML:<div id="rounded-corners">BLAHBLAHBLAH</div>CSS:#rounded-corners { background: url('image with round edges.jpg');} But the way I suggested before is very quick and painless (relatively)
  20. You need a MySQL table to hold your login systems password and username. Then write a PHP script to get the values of your login form and check them against the values of the table. Or add this code to the top of your admin panel's header. MUST BE PLACED BEFORE ANYTHING ELSE IN THE PAGE FOR IT TO WORK <?php$username = 'YOUR USERNAME';$password = 'YOUR PASSWORD';if (!isset($_SERVER['PHP_AUTH_USER']) || !isset($_SERVER['PHP_AUTH_PW'])) { header('WWW-Authenticate: Basic realm="Password Protected Area"'); header("HTTP/1.0 401 Unauthorized"); echo "<h1>401 Unauthorized!</h1>"; echo "You must enter in a username and password combination!"; exit;}elseif (strcmp($_SERVER['PHP_AUTH_USER'], $username) !== 0 || strcmp($_SERVER['PHP_AUTH_PW'], $password) !== 0) { header('WWW-Authenticate: Basic realm="Password Protected Area"'); header("HTTP/1.0 401 Unauthorized"); echo "<h1>401 Unauthorized!</h1>"; echo "Your username and password combination was incorrect!"; exit;}?>
  21. Check the permissions on your files. That could affect what you can upload.
  22. Yes you can. It is a good idea when using a MySQL command so people don't see the location of your database.
  23. The only way is to use a proprietary prefix: -moz-border-radius for Gecko based browsers such as Mozilla Firefox and Seamonkey, -webkit-border-radius for Safari and Chrome or -khtml-border-radius for KHTML based browsers such as Konqueror.
  24. It needs to have an action attribute and a method attribute. Also, you need a GCI script to process that form.
  • Create New...