Web Design Forums

Welcome! Please register or log in: Forgot your password? Why register?
You are here: Web Design Forums » Today at WDF RSS
Today's Featured Posts
Posts selected by moderators as being high in quality
No posts were hand-selected for today, but here are some popular recent discussions.
first I want to say I'm still new to php and programming so I'm sure this is 99% of my issue especially since I KNOW this has to be an easy issue.

I have 4 pages index.php, states.php, and selection.php selection2.php (but we'll ignore the last)

index.php has a form where you select your state, that than goes to a redirect page, adds a cookie, than takes you to states.php and displays the info for the state. the code to check on the cookie is:
if(isset($_COOKIE['psrstate'])) {
    $state = $_COOKIE['psrstate'];
    $query = "SELECT state, menuA, menuB, selection1, selection2, selection3 FROM states WHERE state = '$psrstate'";
    $result = mysql_query($query) OR die(mysql_error());
    if (mysql_num_rows($result) != 1) {
    }
} else {
}
$row = mysql_fetch_assoc($result);

I should probably mention the above code is both in my states.php and selection.php

now what I'm trying to do is when you select a link from menuA it will take you to selection.php and display the date and menuA so you can select other options.

my problem. I cant for the life of me figure out how to create the links in menuA.

to display the menu I just added 
<?php echo $row['menuA']; ?>   

and for the body I tried setting my links as <a href="selection.php?query=selection1">selection 1</a>
and the body link
<?php echo $_GET["query"]; ?> 
but all that this did is just echo "selection1" not the actual contents of the mysql column "selection1"

I would like for the url to just say example.com/selection.php the same as it now says example.com/states.php but thats another story I suppose

I've spent all day looking for a solution for this solution and cant find it anywhere.

any help is GREATLY appreciated
Hey I have a swf that sends a image to a php file. The image shows fine but i am having trouble with the php script. The header( "Content-type: image/jpeg") is messing me around, without it the image does not display and with it i can display any text.

Here is my code, currently neither the div or the echo is displayed and only the image is displayed. Is there anyway to work around this? I am pretty new to php so any help would be greatly appreciated.

<?php
    $data 
explode(","$_POST['img']);
    
$width $_POST['width'];
    
$height $_POST['height'];
    
$image=imagecreatetruecolor$width ,$height );
    
$background imagecolorallocate$image ,);
    
//Copy pixels
    
$i 0;
    for(
$x=0$x<=$width$x++){
        for(
$y=0$y<=$height$y++){
            
$int hexdec($data[$i++]);
            
$color ImageColorAllocate ($image0xFF & ($int >> 0x10), 0xFF & ($int >> 0x8), 0xFF $int);
            
imagesetpixel $image $x $y $color );
        }
    }
    
//Output image and clean
    #header( "Content-Disposition: attachment; filename=test.jpg" );
    
header"Content-type: image/jpeg");
    
ImageJPEG$image );
    
imagedestroy$image );    
    
    echo 
"display test";
    
?>

<div style="background:#FF0000;">asdasdasda sdasdas</div>
Was wondering if someone has experience with multiple domains on one hosting account? I have a deluxe hosting account at GoDaddy. I have a primary domain and have been adding sub domains to it to save cost. The primary domain has Wordpress installed in the root for the main domain. I set up the sub domains with their own folders and installed Wordpress into each one of the subdomain folders. Because I set up the subdomain folders the URL for the subs looks like this: www.domainA.com/domainA
What I want to know is: can I install the subdomains directly into the root of the primary domain and still set up Wordpress for each sub domain in a separte mySQL database? I have Wordpress installed in the root folder of the primary domain and I think that if I try to install it again in the root folder it will just overwrite the one in the root folder. Also, does this method hurt SEO results?
Thanks in advance, Tom
hello im working on a site and i cant figure out where i have messed up the code. basically im looking for my "wrap" to encompass everything on the page and it seems to be stuck near the top. the wrap is grey on my page and i know no pictures are present right now. page can be found at www.allreadyproperty.com/newtest thank you for any help
patrick
Hey I am looking for a way to input data into a .css webpage. I am looking to put information from emails received such as date, ip addresses and one of the cells will be a link directly to the email header and body that is also in a .css format.
I had seem something on youtube for something similar where this guy put personal or school contact information.
Any help would be greatly appreciated.
Software I have access to are Expressions web 3 & dreamweaver cs4(mstr)
ok so in computing we have to do a website for a company called berties buses
i have spent the last month or so working on the register and login page
i managed to finish it two days ago and some **** computer decided to crash while the memory stick was in, deleting every file i had (well it says it needs to be formatted and the it technicians cant fix it)

i backed it up a few weeks ago so i think i still have the database, but i lost all the registration page work

i would be really grateful if someone could please try do a register page. ive only been doing computing for a few months but most of you guys know what your doing so it shouldnt take anywhere near as long

anyway here is the design

username
password password2
email
validate

title
first name surname
address1 address2
address3 gender
post code
phone number
date of birth day date of birth month date of birth year

submit


validation:
username
less than 16
contains [A-Za-z0-9 _-]
more than 3
doesnt exist

password
less than 32
matches other password
contains [A-Za-z0-9-_.,]

email
1 @ sign
less than 32
1-3 dots
contains [A-Za-z0-9-_ .@]

title
drop down box (mr, mrs, ms, dr, miss)
must match gender (drop down male or female)

first name
less than 16
contains [A-Za-z-]
more than 3

surname
less than 16
contains [A-Za-z-]
more than 3

address1
less than 16
contains [A-Za-z0-9 _-]
more than 3

address2
less than 16
contains [A-Za-z _-]
more than 3

address3
less than 16
contains [A-Za-z _-]
more than 3

postcode
less than 8
contains [A-Za-z ]
more than 5
if it contains [A-Za-z] it must contain [0-9]
if it contains [0-9] it must contain [A-Za-z]

phone number
contains[0-9 ]
less than 12
more than 6
if it is 6 say put in an area code

date of birth
day less than 31
day more than 1
over 30 must not be not september, april, june or november
february must not be over 29


if there is something wrong
echo the errors

if there isnt
write to database





i can do the little bits but i would be soo grateful if someone could do the basic stuff please. i cant imagine this would be too hard for you guys to do so please consider it


ps. we have to finish this next month and i have also got to do a quotes page which can calculate distances between postcodes so i think i have got to start working on that now if i want to get it finished
I know basic HTML and CSS, but I want to have a flash based website so I've been using Wix.com to build one. Wix provides the option to either use Wix as the webhost or providing a code to embed the site.

I would like to incorporate HTML elements in my site so I am opting to use a different host and use the embed codes.

The URL of the website I created with the flash embeded is http://claytonjamesphotography.webs....otography.html
The URL of the page as Wix hosts it is http://www.wix.com/claytonjamesphoto...es-photography

I have a facebook badge in a DIV, which I was able to rotate 90 degrees in Firefox, Opera, and Safari. For some reason the code that's supposed to work for IE isn't working. Anyone have any idea why?

Also, in the Wix hosted version the background of the flash is black, but in the page I made it's white (unless viewed in IE). Not a big deal other than there's always a white bar showing unless it's displaying at larger than 1000x650px. anyone know how I could change it to a black background with the embedded code?

I tried using the following code to embed it instead, but when i set width to 100% it disappears in firefox and the whole thing looks weird in opera:

<script type="text/javascript">
        var minimalFlashVersion = "9.0.115";
        if (swfobject.hasFlashPlayerVersion(minimalFlashVersion)){
            var flashvars = {};
            var params = {
                play: "true",
                loop: "true",
                menu: "true",
                quality: "high",
                scale: "noScale",
                salign: "tl",
                wmode: "window",
                bgcolor: "#000000",
                base: "http://static.wix.com/",
                flashvars: "pageId=fToLYLSE6Qc-a&embedFormat=normal&embedID=vqYoomyuzs7p;3k0UPaqx8v7LpqCLABuVsglrHCpAR_5_d0tYtaEPd3vhXFcpKEua&partner_id=WMGs4POB1ko-a",
                devicefont: "false",
                allowscriptaccess: "always",
                allowfullscreen: "true"
            };
            var attributes = {
                id: "app",
                name: "app",
                align: "middle"
            };
            try {
                swfobject.embedSWF("http://static.wix.com/client/app.swf?v=31", "flashContent", "100%", "100%", minimalFlashVersion, false, flashvars, params, attributes);
            } catch(e){
                alert("General error occured. Please try to refresh the page.");
                //@todo: implement when monitor is ready
                //document.write('<img src="{MONITOR_SRC}" width="0" height="0" alt="" />');
            }


        } else {
            window.location.href = "http://claytonjamesphotography.webs.com/home.htm";
        }
    </script>



Thanks for the help!
Anyone know how I can create a package/price calculator like this?
http://www.alysonbeth.com/wed-pick/

I will be selling different products, and I want the user to be able to select different packages, and then add on any items to it, which will them give them a price as they add on items. It will also have to figure in 8% sales tax.

The example above is actually almost exactly how I would like it to be if possible. The only thing I don't like about that one is that how you have to click "review my order" and then it takes you to another page. I just need it to calculate on one page if possible, and I don't need a contact form on it either. I can't put .html on my host, it's an automatic site, so I would have to link to the .html file elsewhere on a free host or something. I don't really know html and definitely not javascript, so if templates exist that would be great too!

Thank you for the help, very much.
Hi there,

I have a site that has only just gone on the web.

When the page loads it initially site on the right and then shifts left (to centralise the page)

I have no clue as to why this is happening - any help would be greatly appreciated.

The site is built on Joomla 1.5. The address is http://www.spottedpanda.com

Kind regards

Steve
Hello WDF,

Today I officialy became certified in HTML 4.0, XHTML 1.0, and CSS at w3schools. I found the test easier than what I thought and heard it would be. I am aware of what some people think about w3schools, being old material, however most material on the exam, I found,wasen't in any of their tutorials. (Luckily I had gone through quite a few sites).

So now, being certified in XHTML and CSS, what language should I move onto? I was thinking of doing some JavaScript, but not sure yet. PHP has always been a pretty strong language, but not so much for web design as it is for web development. So, with that being said, what language should I do next?

My certification page


Thanks,
-Jeff
Welcome to Web Design Forums!
What is Web Design Forums?
Web Design Forums is dedicated to helping its users of the web design community of all skill levels with their problems. With supportive members, a friendly environment, and posts without bias, WDF goes above and beyond achieving this goal. Learn more.
Before Posting
Note that some forums have their own additional rules.
Before you participate in discussions at Web Design Forums, you must read and agree to the forum rules.
Today at WDF
Web Design Forums
About WDF
WebDesignForums.net is owned and operated by Transio, LLC - a Miami, FL web design and software development company.
Recent Unanswered Questions
DIV Positioning Final
in Web Design Discussion by Nextoss
March 14 '10, 11:01 PM
"Site of the Month" Contest
Vote for your favorite entry in this month's contest! Voting is over at the end of the month.
Last Month's Winner Monolith won with 100% of the vote with the entry: Monolith Multimedia

View the Hall of Fame for more information about this and past winners.
Your Reputation
Register at Web Design Forums and make quality posts to earn reputation!
Statistics
Members: 21,494 (see who's online)
Newest Member: gatorhost
Posts: 183,638
Threads: 29,858
View moderating team
Happy Birthday
Today's Birthdays: Mr Jody Hudson (61), DavidCole (39), shocker1185 (21). Is it your birthday? Set your birthday while registering.