hi Dan! I just popped back online to post that I figured out what I was doing wrong.
I have no idea what a foo is past a foo fighter... and the only bars I know about are the ones that card you at the door and come in the form of chocolate (I partake of neither!).
What did the trick was simply having a masthead for each of the levels of pages, and within each masthead, putting how many ever ../s before each image that...
User Profile
Collapse
-
../ not working for images pulled from within an include file
Hi guys!
I may be overlooking something dumb here...
For a series of subdirectories I put the masthead in as an include file, with ../ up to the directory above it. Problem is, it won't pull the images unless I have a masthead file in every single one of numerous subdirectories. Way too much work to update and it seems like uneccessary duplicate files.
Can someone tell me... is there some reason with... -
hey there... thanks for your quick response. i called them and left a message explaining what happened. he called back and said that he's experimenting with spam filtering on his website and that's why i got the message.
nice.
scare the crap out of me.
seems he needs to fix whatever he's doing.... because i could very well be only one among many who weren't able to contact him... some of whom probably...Leave a comment:
-
security issues... please help asap!!!
hi guys....
i just went to fill out a contact form on someone's webpage and got this error message at the top of the page:
*** We are sorry but spam from your ip address: xx.xx.xxx.xxx is not allowed! ***
(obviously, i replaced my address with x's).
what does this mean???? is my computer at risk... or has something already happened?
help!
=( -
Well, I'm a newbie to the web site world... but here are two that I know a little about:
Dreamhost.com was highly recommended to me last year. I almost went with them when finally signing up for hosting just recently, but decided on godaddy.com instead... because as a newbie I needed the customer service aspect more than anything.
I'd had a domain parked with them for awhile, so called them up to ask questions. They...Leave a comment:
-
and one more thing.... it REALLY hates that "else"... catches it every time and complains about it.
seems like it needs to be there... and i'm doing it exactly like i've been told... so i have no idea what i'm doing wrong.Leave a comment:
-
aha!! that's what i thought!!! but i was just following directions. :/
anyway, i echo'd it and it is still giving me the same error.Leave a comment:
-
hi there! ok... i changed it to this, based on everyone's advice:
Code:<?php // Define your username and password $username = "xxxxxx"; $password = "xxxxxx"; if($username!=$_POST['username'] || $password!=$_POST['password']){ //login form <form name="form" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
Leave a comment:
-
ok... password protecting just one page
Hello again. So I googled myself into finding this code:
Code:<?php // Define your username and password $username = "someuser"; $password = "somepassword"; if ($_POST['txtUsername'] != $username || $_POST['txtPassword'] != $password) { ?> <h1>Login</h1> <form name="form" method="post" action="<?php
-
I figured it out! All I usually need is someone to point me in the right direction. =)
Thanks bunches!
~ DebLeave a comment:
-
OMG you are just awesome.
Yes, I got it to work with one of the entries... but there are 6 entries... how do I get all six of them? I've experimented a bit with no luck.Leave a comment:
-
Yes, I thought about that as well. The reason I'd like to do it this way is this:
On page 1 they enter contact information.
On page 2 they enter payment information (there's a reason for separating them).
If, for some reason, they don't complete the payment information on page 2, I'd like to have their contact information so that I can email them to follow up and answer any questions they may have.
...Leave a comment:
-
sending an email at the same time as setting the form action to another page
Hi there,
Beg of your forgiveness if this is too basic or the question has already been answered somewhere... I'm still learning my way around php and this site.
I have a form on page 1 which is sent to be displayed on page 2. Is there a way to do this while also sending an email to me with the information that was submitted? I know how to do both individually, just not simultaneously, and google isn't helping (wait,... -
Thanks for the advice! I did end up getting it to work the other night using "include". Just getting back to work now after having the flu. At least I was the one with the virus and not my pc. =)
Now for a new post with a new question...Leave a comment:
-
Hi Atli,
Thanks for your quick response. I had already read the article that you linked to, as well as about 100 other tutorials online saying the same thing. What I need is to go beyond merely displaying what the choice was.
I'd like the page content to be different based on that choice. If there was a way to put an if (or something) into the action element of the form, then I could just direct the user to a specific...Leave a comment:
-
drop-down menu and conditional response on page 2
Hi there... total newbie here... just typed out a beautiful question and then it sent me to log in and my question has just joined the stash of lost socks from washing machines. Start over.
I'm trying to learn php to make 3 pages of my site functional. I have lots of questions... but I'll narrow it down to just one for this post. Let me also say that I'm a do-it-yourselfer and like to find the answers myself... and if there was...
No activity results to display
Show More
Leave a comment: