Search found 15 matches

by sHobbsWW
Fri Apr 23, 2010 3:47 pm
Forum: HTML, CSS and other UI Design Technologies
Topic: Need help with embedding in HTML/PHP
Replies: 2
Views: 1223

Re: Need help with embedding in HTML/PHP

Creating a variable (global) or adding a variable to an included php file would solve the problem. You would create a variable that contains the desired header design code. Then use a simple function to echo it out on every page. But this is dependent upon whether or not you are using a template sys...
by sHobbsWW
Thu Apr 22, 2010 9:15 pm
Forum: HTML, CSS and other UI Design Technologies
Topic: Liquid Divs (Creative problem)
Replies: 4
Views: 1814

Re: Liquid Divs (Creative problem)

I removed all irrelevant site design. I reduced file size and quality to fit onto smaller screens. Just incase.


Before Growth
Image



After Growth
Image
by sHobbsWW
Thu Apr 22, 2010 10:12 am
Forum: HTML, CSS and other UI Design Technologies
Topic: Liquid Divs (Creative problem)
Replies: 4
Views: 1814

Re: Liquid Divs (Creative problem)

Well, again I'm trying different techniques because this is the first design of it's kind for me. Please feel free to tell me if I'm doing something completely the wrong way. But Here is the long version: I have mainCC (DIV A) centered in the browser window regardless of the browser dimensions. So I...
by sHobbsWW
Wed Apr 21, 2010 10:45 pm
Forum: HTML, CSS and other UI Design Technologies
Topic: Liquid Divs (Creative problem)
Replies: 4
Views: 1814

Liquid Divs (Creative problem)

Here is my issue as it pertains to a vertically liquid website design. I have a main content area (DIV A) whose content makes the site grow from a min-height to infinite (dependent upon the contained content.) DIV A, is surrounded by a back ground image of lines. This background image needs to grow ...
by sHobbsWW
Sat Mar 14, 2009 2:59 pm
Forum: PHP - Theory and Design
Topic: General structuring of security.
Replies: 10
Views: 3481

General structuring of security.

The subject might sounds complex but the question is quite simple. In general, how does one know how to go about the structure of his or her website design (in terms of code). By that I mean, I am creating a web site for a company with a (to me) complex back-end system featuring content management t...
by sHobbsWW
Tue Jan 06, 2009 7:48 pm
Forum: PHP - Code
Topic: File targeting.
Replies: 1
Views: 83

File targeting.

I know this probably has an easier solution and I am just over thinking it but: Say every page you have has a function in php that checks your login status. --If you are logged in, it says "Hi $accountName" --If not it pops up the login form. Here is the code:   function loginStatus(){    ...
by sHobbsWW
Thu Oct 02, 2008 9:59 am
Forum: PHP - Code
Topic: mysql query inside a function
Replies: 5
Views: 377

Re: mysql query inside a function

Thanks, but in fact I did not need to extract the variables outside of it's local scope inside the function. But I did learn something thank you. But I found it easier to just to do this.     function selAccountLogins(){         $query = "SELECT user_login FROM userAccounts ORDER by user_login ...
by sHobbsWW
Wed Oct 01, 2008 2:38 pm
Forum: PHP - Code
Topic: mysql query inside a function
Replies: 5
Views: 377

mysql query inside a function

What I am trying to do is execute a function. The function will (when parased) set the $query variables to do what is needed. Here is the function::   function selAccountLogins(){         $query = "SELECT user_login FROM userAccounts ORDER by user_login ASC";         $querying = mysql_quer...
by sHobbsWW
Sun Aug 10, 2008 8:09 pm
Forum: PHP - Code
Topic: $_SESSION passing issues.
Replies: 5
Views: 368

Re: $_SESSION passing issues.

I am sorry to respond so late to this post. Had some not so fun car accident issues. Anyways, authLAdmin can be found in a separate included .js (authLevels.php). Here is the complete pHp of page2.php <?php     include "../../php/dBALVConnect.php";     include "../../php/authLevels.ph...
by sHobbsWW
Fri Aug 01, 2008 9:15 am
Forum: PHP - Code
Topic: PHP goto another web page automatically after login?
Replies: 9
Views: 91042

Re: PHP goto another web page automatically after login?

Mike,

Code: Select all

 
<head>
<?php
    if (condition is met) {
        echo "<meta http-equiv=\"refresh\" content=\"3; url=http://www.example.com\">";
    } else {
        // do w/e you want
    }
?>
</head>
 
by sHobbsWW
Thu Jul 31, 2008 10:42 pm
Forum: PHP - Code
Topic: $_SESSION passing issues.
Replies: 5
Views: 368

$_SESSION passing issues.

So here is the issue. I have a login, connects to dB, verifys user and redirects. <?php     session_start();     //connect to login dB     include "dBALVConnect.php";     //set vars from posts     $postUserLogin = $_POST['user'];     $postUserPass = $_POST['pass'];     //look at what?     ...
by sHobbsWW
Thu Jul 31, 2008 10:19 pm
Forum: PHP - Code
Topic: PHP goto another web page automatically after login?
Replies: 9
Views: 91042

Re: PHP goto another web page automatically after login?

Hi mike! There are a few ways to go about redirection, however the most popular of the two are: Meta refresh. 301 redirect. What is the difference? Well I can't speak to much on it because I do not yet know a lot about SEO. But the 301 redirect is more vital when dealing search engines. (Kind of lik...
by sHobbsWW
Wed Jul 16, 2008 1:46 pm
Forum: PHP - Code
Topic: PHP Forum posting & cookie setting.
Replies: 3
Views: 110

Re: PHP Forum posting & cookie setting.

Problem fixed and understood. Setting a cookie with such short life-span may not register depending on how the browser in use sets the expiration time. Though I am not sure of the differences between time handling in multiple browsers. Maybe there is a minimum time that must be met for cookies in sa...
by sHobbsWW
Wed Jul 16, 2008 12:56 pm
Forum: PHP - Code
Topic: PHP Forum posting & cookie setting.
Replies: 3
Views: 110

Re: PHP Forum posting & cookie setting.

Update: Firefoxx creates the cookies but safari does not...... :banghead:
by sHobbsWW
Wed Jul 16, 2008 11:11 am
Forum: PHP - Code
Topic: PHP Forum posting & cookie setting.
Replies: 3
Views: 110

PHP Forum posting & cookie setting.

Hello I am a rather new developer when it comes to server side programming. I am currently learning and testing different methods for creating cookies, however I ran into this issue. I am trying to submit a form with contact information to a another page called (cookies.php). Here is the forum:   <...