Re: Trying to write a sign up form… Little help needed
[QUOTE=Dave96]
Just started writing a sign up form. The first page will allow the user to choose between transfering domain, registering a new one or stopgap domain.
[/QUOTE]
Dave96, If you are writing a script to interface directly into the database with PHP, good luck. I tried this a few times, got many errors and abandoned the cause.
[QUOTE=Dave96]
_mod - i’m not sure about this one. is it a hidden field that includes the 3 choices regarding domains?
[/QUOTE]
The _mod field tells HSphere whether you are doing anything with a domain. If your signing up a user for Hosting Without a Domain, this field is “empty” and the other fields below are not nessesary. If you are doing anything with a domain, i.e. domain transfer, registering domain, etc., this field would need the appropriate value.
[QUOTE=Dave96]
type_domain - this is what i set up as my 3 checkboxes each with the appropriate value.
[/QUOTE]
This field just tells HSphere what type of domain signup your doing. Check the documentations for the different values.
[QUOTE=Dave96]
domain_name - this one is obvious, it is the actual domain to be transfered or registered but it still got me confused. For transfering i’m ok it’s just a plain textbox but for regstering a new domain, should I add a TLD rolldown menu with domain_name as its name??
[/QUOTE]
Domain name is set whenever you have the _mod field set to anything other than “empty”. As for how you create and populate this field, that is up to you. My suggestion would be to request the domain name from the customer, check if it is available, then populate the field.
I hope that helps you. For more info, take a closer look at the HSphere docs at PSoft.net, http://www.psoft.net/HSdocumentation/customization/user_signup_customization.html .