d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Please Help
Add Reply New Topic New Poll
Member
Posts: 4,103
Joined: Dec 11 2013
Gold: 0.00
Jun 26 2014 08:31pm
okay so i bought my hosting service, an when i ftp my site files through filezilla to the site the pages don't pull up the content like it does when i have my folders in easyphp.

i'm using fatcow hosting if you guys are familiar. what do i need to do install a plugin?
Member
Posts: 1,358
Joined: Dec 30 2012
Gold: 0.10
Jun 26 2014 09:43pm
You're using wordpress i take it?
Member
Posts: 4,103
Joined: Dec 11 2013
Gold: 0.00
Jun 27 2014 12:17pm
Quote (SelfTaught @ Jun 26 2014 09:43pm)
You're using wordpress i take it?


no
Member
Posts: 1,358
Joined: Dec 30 2012
Gold: 0.10
Jun 27 2014 12:21pm
Quote (earStash @ Jun 27 2014 10:17am)
no


Whats your domain name?
Which directory are you uploading the files to?
What'd you build the site with, straight HTML & PHP?
Is there a database? If so, did you import the database into phpMyAdmin on fatcow and change the database settings in the config file?

Member
Posts: 4,103
Joined: Dec 11 2013
Gold: 0.00
Jun 28 2014 02:18am
Code
<?php $title = "xx - Register"; ?>
<?php require("styles/top.php"); ?>
<div id='full'>
<?php

$form = "<form action='register.php' method='post'>"
<table>
<tr>
<td>First Name:</td>
<td><input type='text' name='firstname'></td>
</tr>
<tr>
<td>Last Name:</td>
<td><input type='text' name='lastname'></td>
</tr>
<tr>
<td>Username:</td>
<td><input type='text' name='username'></td>
</tr>
<tr>
<td>Email:</td>
<td><input type='text' name='email'></td>
</tr>
<tr>
<td>Password:</td>
<td><input type='password' name='password'></td>
</tr>
<tr>
<td>Verify Password:</td>
<td><input type='password' name='repassword'></td>
</tr>
<tr>
<td>Avatar:</td>
<td><input type='file' name='avatar'></td>
</tr>
<tr>
<td>Country:</td>
<td><input type='text' name='country'></td>
</tr>
<tr>
<td></td>
<td><input type='submit' name='submitbtn' value='Register'></td>
</tr>
</table>
</form>;

echo "$form";

?>
</div>
<?php require("styles/bottom.php"); ?>



Does anybody see anything wrong with my code?
My index.php page is showing my styles etc, but my register.php page is showing an error.

Quote
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


I am not sure what I am doing wrong, I figured out that I am connecting to mysql properly.

Code
include_once "connect_to_mysql.php";


This post was edited by earStash on Jun 28 2014 02:18am
Member
Posts: 1,358
Joined: Dec 30 2012
Gold: 0.10
Jun 28 2014 07:01am
Why not just do this?

Code
<?php $title = "xx - Register"; ?>
<?php require("styles/top.php"); ?>
<div id='full'>
<form action='register.php' method='post'>
<table>
<tr>
<td>First Name:</td>
<td><input type='text' name='firstname'></td>
</tr>
<tr>
<td>Last Name:</td>
<td><input type='text' name='lastname'></td>
</tr>
<tr>
<td>Username:</td>
<td><input type='text' name='username'></td>
</tr>
<tr>
<td>Email:</td>
<td><input type='text' name='email'></td>
</tr>
<tr>
<td>Password:</td>
<td><input type='password' name='password'></td>
</tr>
<tr>
<td>Verify Password:</td>
<td><input type='password' name='repassword'></td>
</tr>
<tr>
<td>Avatar:</td>
<td><input type='file' name='avatar'></td>
</tr>
<tr>
<td>Country:</td>
<td><input type='text' name='country'></td>
</tr>
<tr>
<td></td>
<td><input type='submit' name='submitbtn' value='Register'></td>
</tr>
</table>
</form>
</div>
<?php require("styles/bottom.php"); ?>


but if you really want to echo the html.. look into heredocs. here's an example of one using your html

Code
<?php
require("styles/top.php");

$title = "xx - Register";
$html=<<<EOT
<div id='full'>
<form action='register.php' method='post'>
<table>
<tr>
<td>First Name:</td>
<td><input type='text' name='firstname'></td>
</tr>
<tr>
<td>Last Name:</td>
<td><input type='text' name='lastname'></td>
</tr>
<tr>
<td>Username:</td>
<td><input type='text' name='username'></td>
</tr>
<tr>
<td>Email:</td>
<td><input type='text' name='email'></td>
</tr>
<tr>
<td>Password:</td>
<td><input type='password' name='password'></td>
</tr>
<tr>
<td>Verify Password:</td>
<td><input type='password' name='repassword'></td>
</tr>
<tr>
<td>Avatar:</td>
<td><input type='file' name='avatar'></td>
</tr>
<tr>
<td>Country:</td>
<td><input type='text' name='country'></td>
</tr>
<tr>
<td></td>
<td><input type='submit' name='submitbtn' value='Register'></td>
</tr>
</table>
</form>
</div>
EOT;

echo $html;

require("styles/bottom.php");
require("styles/bottom.php");

?>
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll