Jump to content


VlexoFree Notice

Interviews will be open every Friday starting at 12am PDT and lasting for 24 hours.

Kiro R

Member Since 12 Aug 2008
Offline Last Active Feb 23 2012 08:41 PM
-----

Topics I've Started

[16th Jan 11] Account Suspensions

16 January 2011 - 05:53 PM

Hello,

The following is a list of accounts that have been recently suspended.
The reason varies depending on your plan.

Expert 200
http://nemeadesigns.co.uk - No linkback or ads on ALL subdomains
http://i-grp.org - No Ads
http://blog.jacksite.net/ - No linkback or ads
http://piptek-tiui.vlexofree.com/ - No Ads
http://healthnewspaper.co.cc - No ads or linkback

Personal 300

http://mestre-digital.tk
http://primerobotics.co.nz
http://josemorantin.co.cc



Please note: Your whole account package will be suspended if one of your subdomains, or webpages do not have the required material on the webpages.

Sincerely yours,

Calling a form with PHP

11 December 2010 - 02:21 PM

Since I'm bored I'll show you all how to call a form with PHP.
First we need to create a form though, so create the following file with the code:

form.html
<html>
<head><title>Simple Form System</title></head>
<body>
 <form method=post action='formaction.php'>
  Username: <input type='text' name='un' /> <br/>
  Password: <input type='password' name='pw'/><br/>
  <input type='submit' name='loginform' value='Login!'/>
 </form>
</body>
</html>

In the above, I created a login form that you will use to obviously login. I'm not going to go into specifics about HTML Forms, as I expect that you should know the least about them. Anyway, here is the formaction.php, the file that will actually work the form and define the inputted variables.

formaction.php
<?PHP

include "config.php"; //include your local database configurations..

if(isset($_POST['loginform'])){
//Isset is a boolean function, basically if "LoginForm" is set to 1 (true), it will call this form. So if someone clicks submit, the form will begin to run the PHP of this.

$username = mysql_real_escape_string($_POST['un']);
$password = mysql_real_escape_string($_POST['pw']); //Defining the variables in PHP, matching what's in the $_POST[''] with the "NAME" of the form input.

//Using mysql_real_escape_string() is good for stripping all SQL related commands that could be inputted into strings/variables, so always use it when select/update the database with local variables. 

 if($username == "kiro"){ // What this did is: If the username inputted into the form is kiro, then it will output "Hello Kiro, how are you?
  echo "Hello Kiro, how are you?";
 }elseif{$username == "adam" && $password == "123"){ //This will output the echo, if the username is adam and the password is 123
  echo "Oh hey Adam! Thanks for typing your pass as 123";
 }else{ //If the username isn't kiro, or the username isn't adam with a password of 123, then it will display the following error message:
  echo "The information you inputted is not defined, thus displaying this message. Try again, derp. =3";
 }



}

?>

It's simple, and can go a lot further, such as selecting data from the database, locating users, etc,etc,etc. This is simple.

For tutorials on IF/ELSE statements, look here: http://us.php.net/elseif
For tutorials and more clarification on the ISSET() function, look here: http://us.php.net/isset

Thanks.

Change base domain

06 October 2009 - 03:22 PM

Account Type: titanium
cPanel UserName: aarona
Nature Of Problem:Other
Your Domain/Subdomain: abboard.com
Problem:

Can you change the MAIN domain on my account from batzempire.com to abboard.com

The domain batzempire doesn't belong to me anymore and I would like abboard to be my main domain now.

Thanks,

Aaron

[RESOLVED] Website works but FTP/WebMail doesn't

02 October 2009 - 08:42 PM

Account Type: Titanium
cPanel UserName:aarona
Browser:FF
[Nature Of Problem: FTP/WebMail
Problem:

It won't let me log into the FTP server or webmail but my websites work perfectly fine.

Is this a server outage of some sort?

PHP News System

15 September 2009 - 06:21 PM

I'm looking for  good tutorial on how to make a news system with PHP/MYSQL?


Could anyone possibly help me out.


Thanks!