October 14, 2019, 03:50:09 am

News:

Go to HostNed.com
Welcome.  This is a place to get user-to-user support, learn more, and share ideas.  If you can't find your answers here, feel free to ask by creating a new topic or visit the support ticket system at https://my.hostned.com :)  Have fun here!


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.

Topics - Dynaweb

121
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?
122
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
123
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  ;)
124
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?
125
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.
126
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?
127
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.
128
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:

129
Just Chat / How do you like the forums?
January 21, 2006, 03:48:59 pm
We just got the user forums up and going.  How do you like it? 
Thumbs up or thumbs down?