GetDotted Domains

Viewing Thread:
"Forms 'n' things."

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Sun 03/10/04 at 15:54
Regular
"www.bloodbanx.com"
Posts: 1,174
Well For a start I want a contact form page thing, and because my site hasn't been hosted yet I can only test on localhost, anyway I'm having problems making a form;

Well when I put a 'mailto:[email protected]' address into action under form properties and I test it, insted of sending the data to my email it opens an outlook 'send email' window. I've never made a form before or anything which handles submitted data, so I haven't a clue really.

And well Sometime in the future i was hoping of setting up a automated database of files, so that people can submit files and be precessed then written to a webpage, which would include the form which I am stuck on right now! If anybody knows how hard or how to do this i would greatly appreacite it.

Bessant.
Mon 04/10/04 at 14:31
Regular
"Chavez, just hush.."
Posts: 11,080
I lost the form that I made, but the oldish one is here.

[URL]http://phi11ip.com/email.txt[/URL]

This won't work with any of of the Staghosting servers as sendmail isn't supported on either of the new servers, you'll have to find a SMTP form to use.

Oh, and you can take out all the CLASS=\"form\" bits too...
Sun 03/10/04 at 21:16
Regular
"www.bloodbanx.com"
Posts: 1,174
Thanks for everything and stuff.
Sun 03/10/04 at 20:22
Regular
"NULL"
Posts: 1,384
Yup, that's what I found. I'm not gonna post the name of the hosting company here cos I've not spoken to him about posting it here and he may not approve. Though if you use MSN, feel free to add me, with this: matt underscore s97 at hotmail dot commercial.
Sun 03/10/04 at 20:14
Regular
"It goes so quickly"
Posts: 4,083
I expect you know this, but just in case; you need to be a valid TAG holder and registered member of Nominet to be able to purchase .uk domain names from them for £5 + VAT. Non-members are charged £80 + VAT.

Membership to Nominet cost £400 + VAT joining fee, and an annual fee of £100 + VAT.

Could I ask who this hosting company is?
Sun 03/10/04 at 19:32
Regular
"NULL"
Posts: 1,384
Well the guy I'm working with runs a specialised hosting company. There's so many hosting companies out there that there isn't a lot of money to be made in standard hosting, but by offering customised hosting, he does better. I've got a few sites that require specialised hosting, so we're going to work together on those, and then we were looking to domain registration as well.

One of my websites is a load of tools for use online, and domain registration would fit in quite nicely. The other alternative is to become a reseller for someone like 123reg. But the way we see it is that we can offer the domain registration with nameservers very cheaply because we can set it up to be almost totally autonomous. He has massive excess bandwidth - he's currently using somewhere around 10% of available - so hosting nameservers would cost him nothing extra. The only cost we would incur would be Registrar registration fees, and payment fees to someone like WorldPay.
Sun 03/10/04 at 19:20
Regular
"It goes so quickly"
Posts: 4,083
Nimco wrote:
> But I was wondering if there was any software you could run (Windows
> or Linux or Unix) that does that job specifically.

Ah, well I would expect there to be, though I personally couldn't direct you to it I'm afraid.

> It's just that me and another guy are looking at the prospect of
> setting up as domain registrars. From the research I've done, I've
> found that some domain registrars are making as little as 9p per year
> profit from .uk domains!

That's true, but they sell so many that they make a tidy profit. Most are also owned by large hosting companies, who don't intend on making profits from domain names, but to market their hosting brands (Host Europe with 123reg, Fasthosts with ukreg).

You'd be very luck to be able to set up a domain registry company and make money these days, unless its bundled with hosting, but all the best to you with it.
Sun 03/10/04 at 19:16
Regular
"NULL"
Posts: 1,384
Yeah, that's the kind of thing I was looking at. I know you could just setup a crontab and use the PHP imap() functions to check the server, but I was wondering if there was any software you could run (Windows or Linux or Unix) that does that job specifically.

It's just that me and another guy are looking at the prospect of setting up as domain registrars. From the research I've done, I've found that some domain registrars are making as little as 9p per year profit from .uk domains!
Sun 03/10/04 at 19:13
Regular
"It goes so quickly"
Posts: 4,083
Nimco wrote:
> I know it's slightly OT, but does anyone know how to get a server to
> do something with incoming mail?

I'm sorry but I didn't quite understand your example.

But it is possible to get the server to do something with incoming email. I can't remember the exact functions, but I believe PHP has some built in actions which can look over your email inboxes and work with them as if they were any other text file.

You could set up a PHP script to run every minute to check the inbex, look at the new messages, scan them and do whatever with the data found. Such an example could be seeing an email to a mailing list with the word 'unsubscribe' in the subject. PHP could scan the email, find that keyword, and remove that email address from its mailing list database with the basic MySQL code.

if (strstr($subject,"unsubscribe")) {
remove_email($email); # Call custom built function to remove value from MySQL.
}
Sun 03/10/04 at 18:57
Regular
"NULL"
Posts: 1,384
I know it's slightly OT, but does anyone know how to get a server to do something with incoming mail? E.g. I'm think as a domain registrar, you take info from customers, and register the domain with Nominet via the email Automaton. You then receive a reply which needs to be intepreted by your server and acted upon accordingly.
Sun 03/10/04 at 17:32
Regular
"It goes so quickly"
Posts: 4,083
be§§ant™ wrote:
> Well when I put a 'mailto:[email protected]' address into action
> under form properties and I test it, insted of sending the data to my
> email it opens an outlook 'send email' window.


All the mailto keyword is designed to do is open up a blank email. When using it in the action part of your form, do you get the form input element values listed in the message area, or just the blank message?

If you set the action to have ?Subject=a Subject&Body=some text you can get the email to have information in it, but I can't remember how to get the actual values from a form into an email directly using mailto if it isn't done automatically. I think it may be done using the type or enctype attributes, but I'd / you'd have to look into that a little deeper.

You would be better off setting yourself up a simple CGI / PHP script to handle any forms if your host allows it. It allows for more customisation and further development later on (such as putting the data in a file / database rather than an email). I sent phi11ip a PHP script to process a form and send the data via email a little while ago, and think he's updated it since then, so he may be willing to send it your way (as my version is still old and a bit crap really).

The way it'll work is:

- Form is submitted.
- PHP grabs each inputted fields value and remembers it.
- PHP builds an email with the data and sends it to you.
- PHP prints a thank you message to the user for taking the time to write.

I use one ([URL]http://www.haignet.co.uk/contact.php[/URL]), but like I said that's a oldie, and quite a handful for such as basic task (as it was my first real attempt).

> And well Sometime in the future i was hoping of setting up a
> automated database of files, so that people can submit files and be
> processed then written to a webpage, which would include the form
> which I am stuck on right now! If anybody knows how hard or how to do
> this i would greatly appreacite it.


Again, PHP / CGI is your answer, PHP taking priority in my view. If you can, get yourself sorted with a simple form processing script first, and move on from there.

The great think about PHP is that so many people are willing to share their code and applications, so [URL]http://www.hotscripts.com/PHP/Scripts_and_Programs/index.html[/URL] and see if what you're after is listed.

This could work by:

- Form being submitted.
- PHP grabbing the data and remembering it.
- PHP opens a connection to a MySQL database and passes the data.
- MySQL stores that in one of its database tables.
- PHP thanks the user.
- PHP then goes back to the database and gets the data to display wherever you like on your web page.

If you're looking to learn how to do this, then there are some great PHP tutorials online if you search for them, as well as some great books. But if you just want an application to do it for you, regardless of how its done, then take a look at hotscripts and you may find one there.

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Great services and friendly support
I have been a subscriber to your service for more than 9 yrs. I have got at least 12 other people to sign up to Freeola. This is due to the great services offered and the responsive friendly support.
Very pleased
Very pleased with the help given by your staff. They explained technical details in an easy way and were patient when providing information to a non expert like me.

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre
Feedback Close Feedback

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.