Jump to content
[MUST READ] Forum Rules ×

Default register mofh signup


tedbin

Recommended Posts

Hello

I'm having issues with getting my free hosting resellers account working.  The domain is "enoc.us". I backed up the preinstalled template, I must have missed something. The signup form has a variable "echo $id;". Where is that set, or where do I get it, to set it myself. geturl is also capitalizing the first letter of $yourdomain. Is that correct?.

I have not finished the landing page or setup welcome email, forum. Do not plan on using any WHM. I do have a test form at test2.php. Plan input field is not coded in, still get a successful activate account return. No email, or new client account in panel.myownfreehost.net

Link to comment
Share on other sites

2 hours ago, BastelPichi2 said:

Hello,

Templates can be found here: https://myownfreehost.net/templates.php

the $id is a random, md5 encrypted number. It must be echoed to the id field and to the end of the image link. Usually its generated like this:


$id = md5(rand(6000,PHP_INT_MAX));

The capitalizing of your reseller domain is caused by php and can be fixed by adding


$yourdomain = strtolower($yourdomain);

before ?> to your geturl.php.

For your signup site, you can remove language and site type selector. They have no affect.

 

In your signup form, you messed quite some things up. You need no id= at the end of your action property in the form tag.

You can also change to https://ifastnet.com/register.php to get SSL.

So your form part should look like this all fixed and a bit shortened:


<form id="updatedetails" name="updatedetails" class="signup" method="post" action="https://ifastnet.com/register2.php">
                        <table>
                           <tr>
                              <th>Username</th>
                              <td>
                                 <input class="form-control" type="text" name="username" size=30 maxlength="16">
                              </td>
                           </tr>
                           <tr>
                              <th>Password</th>
                              <td><input class="form-control" type="password" name="password" size="30">
                              </td>
                           </tr>
                           <tr>
                              <th>Email Address</th>
                              <td>
                                 <input class="form-control" type="text" name="email" size="30">
                              </td>
                           </tr>
                           <input type="hidden" name="id" value="<?php echo $id; ?>">
                           <tr>
                              <th>Security Code</th>
                              <td>
                                 <img width="250px" height="90px" src="https://ifastnet.com/image.php?id=<?php echo $id; ?>">
                              <td>
                                 <tr>
                                    <th>Enter Security Code</th>
                                    <td>
                                       <input class="form-control" type="text" name="number" size="30">
                                    </td>
                                 <tr>
                                    <th colspan=2><button type="submit" class="btn btn-primary">Submit</button></th>
                              </td>
                           </tr>
                        </table>
                     </form>

Hope this helps! Also dont forget to add the id generation at the top.

https://ifastnet.com/register.php  --> https://ifastnet.com/register.php for SSL On Account?

Link to comment
Share on other sites

Thank you BastelPichi2

That is a lot better, no style yet, it works. final.php I have not submitted to check account creation yet.

Best I still validate the form?

If username is the free subdomain, and cpanel account user is auto generated, is password needed?

Can't see a reason to use geturl.

<?php$
	id = md5(rand(6000,PHP_INT_MAX));
?>
<form name="updatedetails" class="" method="post" action="https://ifastnet.com/register2.php">
  <input class="" type="text" name="username" placeholder="Name" maxlength="128" required /><br>
  <input class="" type="password" name="password" placeholder="Password" maxlength="128" required /><br>
  <input class="" type="text" name="email" placeholder="[email protected]" maxlength="128" required /><br>
  <input type="hidden" name="id" value="<?php echo $id; ?>">
  <span class="">Security Code</span><br>
  <img width="250px" height="90px" src="https://ifastnet.com/image.php?id=<?php echo $id; ?>"><br>
  <span class=""></span><br>
  <input class="" type="text" name="number" placeholder="Enter Security Code" maxlength="128" required /><br>
  <span class=""></span><br>
  <button type="submit" class="">Submit</button>
</form>

 

 

Edited by tedbin
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...