Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Dynaweb

241
One user FFSPIRA on a shared linux server was found today to have multiple directories full of other directories and files all with universal Read.Write,Execute (777) permissions.  Uh oh! HUGE sucurity NO NO there.  That got his site suspended right away.  SWEET!
242
Do you believe that many of the foods we eat are slowly poisoning us?  In this web site
MSG - Slowly Poisoning America
the author makes the following claims:

QuoteThe MSG triples the amount of insulin the pancreas creates...

QuoteNot only is MSG scientifically proven to cause obesity, it is an addictive substance: NICOTINE for FOOD!

QuoteThe big media doesn't want to tell the public either, fearing legal issues with their advertisers.


Are you a believer or it it just hype?
243
Announcements / RSS Feeds for HostNed Forums
March 04, 2006, 12:35:55 pm
Get feeds from the forum in RSS format.  Here is the info to use:

Basic RSS
https://my.hostned.com/forum/index.php?action=.xml;type=rss2

Advanced RSS
Limit to certain board
Example: "Domain Names" = board #10 so use the following RSS URL
https://my.hostned.com/forum/index.php?action=.xml;type=rss2;board=14
Also limit number of items
Use the "limit" command so to limit to three items, use the following RSS URL
https://my.hostned.com/forum/index.php?action=.xml;type=rss2;board=14;limit=2
244
I wish ... / Re: Dreamweaver Linux Edition
March 04, 2006, 10:56:32 am
I agree with zelo here.  From what I am aware of there is a decent graphics tool for Linux called GIMP (GNU Image Manipulation Program.  It has versions for all three -- Windows, Linux, MacOS-X.  Now THAT is impressive!  Now For "Web Site Editors", here is where Linux falls a bit short.  We all wish our favorites like Dreamweaver and FrontPage would just port over a version for Linux users, but for now there are only some less familiar options.  Linux of course has great text editors (Pico, Vi, Nano) for doing those raw edits, but for real dynamic development there is just Composer (yes the old Netscape Communicator component.  Then there is Sun's Star Office (OpenOffice) which has an HTML editor built in but it falls short in many ways.  So is there any possible saviour here for Web Dev on Linux?  Some say maybe the future is in Screem, which is very advanced but does not provide a WYSIWYG interface.  For my money, there is nothing like the dualing screen (HTML and WYSIWYG at the same time) to get that must-look-good-and-be-done-yesterday type stuff done!
245
Scripting / [How To] Making a form field required
March 04, 2006, 03:44:31 am
Let's say you have a web form and you want to make a couple of the fields required.  To keep this as simple as possible we will involve only three fields, "Name", "Email", and "Message".  In this example, all three fields will be required.

Here is your initial form:
<form method="post" action="whatevermailscript.php">
<input maxlength="256" size="35" name="email">
<p>Comments:  <textarea cols="55" name="Comment">  </textarea></p>
<p><input type="submit" value="Send" name="submit">
</form>

You might have noticed I didn't put a Reset button in there.  I think they are stupid, so I dont use them.

Now we need to plug in the validation.  We do this with good old JavaScript!  We will use a function, define the variables (the fields) and call for it on submission (when you click send).  So here we go.

Step 1. Add this in your html form page between the <head></head> tags:
<script>
function ValidateContactForm()
{
    var name = document.ContactForm.Name;
    var email = document.ContactForm.Email;
    var comment = document.ContactForm.Comment;

    if (email.value == "")
    {
        window.alert("Please enter a valid e-mail address.");
        email.focus();
        return false;
    }
    if (email.value.indexOf("@", 0) < 0)
    {
        window.alert("Please enter a valid e-mail address.");
        email.focus();
        return false;
    }
    if (email.value.indexOf(".", 0) < 0)
    {
        window.alert("Please enter a valid e-mail address.");
        email.focus();
        return false;
    }
    if (comment.value == "")
    {
        window.alert("Please enter a description or comment.");
        comment.focus();
        return false;
    }
    return true;
}
</script>


Step 2. Add this as an attribute in the form tag:
onsubmit="return ValidateContactForm();"

Finished Product

<html>

<head>
<title>Form Validation Example</title>

<script>
function ValidateContactForm()
{
    var name = document.ContactForm.Name;
    var email = document.ContactForm.Email;
    var comment = document.ContactForm.Comment;

    if (name.value == "")
    {
        window.alert("Please enter your name.");
        name.focus();
        return false;
    }
   
    if (email.value == "")
    {
        window.alert("Please enter a valid e-mail address.");
        email.focus();
        return false;
    }
    if (email.value.indexOf("@", 0) < 0)
    {
        window.alert("Please enter a valid e-mail address.");
        email.focus();
        return false;
    }
    if (email.value.indexOf(".", 0) < 0)
    {
        window.alert("Please enter a valid e-mail address.");
        email.focus();
        return false;
    }
    if (comment.value == "")
    {
        window.alert("Please provide a detailed description or comment.");
        comment.focus();
        return false;
    }
    return true;
}
</script>
</head>

<body>
Use this form to leave a comment:
<form method="post" action="whatevermailscript.php"
name="ContactForm" onsubmit="return ValidateContactForm();">
    <p>Name: <input type="text" size="65" name="Name"></p>
    <p>E-mail Address:  <input type="text" size="65" name="Email"></p>
    <p>Comments:  <textarea cols="55" name="Comment">  </textarea></p>
    <p><input type="submit" value="Send" name="submit">
    <input type="reset" value="Reset" name="reset"></p>
</form>

</body>
</html>


I hope you will be able to take this example form validator and use it in your own scripts successfully.  Enjoy  ;)
246
General Hosting / Re: What FTP Program Do You Use?
February 22, 2006, 10:21:39 pm
Welcome to the HostNed Forums Afterburn!

I think i tried smartftp last year or so.  It seemed impressive.  I actually recommend that one to our users.  Personally I like Filezilla since it is great for server admins due to the sftp (SSH2) mode.  Since I am used to using Filezilla for root level stuff, I use it for personal stuff as well.  I like both FZ and SmartFTP.
247
Graphics / Re: Graphics Programs
February 15, 2006, 11:03:57 am
I use Ulead Photoimpact.  Mainly because it is easier to use, costs like 8x less than photoshop and has all the features needed for everyday image editing.
248
General Hosting / What FTP Program Do You Use?
February 06, 2006, 06:23:57 pm
What FTP program are you using to transfer your files?  Why do you choose that one?  Why do you think it is better?
249
Design Other / Re: How much to charge for web design?
February 04, 2006, 04:20:09 pm
I agree with just about everything you claim here Zelo, and thanks for sharing your perspactives; but what do you tell somebody when they ask you, "Hey, what do you charge to make me a web site?".  Surely you cannot go over all that stuff with them there on the spot.
250
Scripting / Re: ASP vs. PHP
January 30, 2006, 02:32:09 am
I find PHP to be the best.  You can use it on Linux or Windows and it integrates very well with SQL, Perl, html, and others.  PHP rocks!  8)
251
Design Other / How much to charge for web design?
January 30, 2006, 02:23:18 am
I am hoping to have a detailed, fun, and informative discussion about charging for web design work.  How much do you charge a client?  Do you charge some clients more than others?  If so, why?  Do you charge by the job or by time (by the hour, etc...)?  How important is a contract?

I do not mean to overwhelm with questions, just want to consider many different factors.
252
It appears that this forum has the ability to do all that the static site http://www.hostned.com/members/ does.  For examplr the FAQ's can be moved into here as sticky posts and the newsletters can be moved into their own category etc...  So what do you think.  Should this forum supplement or take the place of the members area?
253
Scripting / Re: sendmail usage on HostNed
January 23, 2006, 09:04:02 pm
PHP version of sendmail should work for sure, on all HostNed servers Linux or Windows or whatever.  If you cannot get it to work, contact support via the ticket system with all the relavent details (URLs, etc) and since this above script is officially supported by HostNed they will assist you in troubleshooting.  Then once you get it sorted out, post here what was the matter so as to share knowledge with others.

If you insist on using CGI version of sendmail for some reason, contact support and ask them the location of sendmail for your server (different servers have different locations for sendmail).
254
Announcements / Welcome to the forums
January 22, 2006, 10:40:55 am
Feel free to ask or answer any questions here in these forums.  Share ideas with others.  Get help with anything from scripting to preventing SPAM.

If posting, just choose the category you feel is most appropriate.  If looking for answers, use the search function or browse by category.
255
Just Chat / Using Syndicated Content From These Forums
January 21, 2006, 08:52:44 pm
The default feed is the 5 most recent posts:
http://my.hostned.com/forum/index.php?action=.xml
To get RSS or RSS2 out of that [not viewable in most browsers alone], add ';type=rss' or ';type=rss2' to that URL.
There are several 'sub-actions' available to this action, specifying exactly what to display: