Jessica
Staff Alumni-
Posts
8,968 -
Joined
-
Last visited
-
Days Won
41
Everything posted by Jessica
-
Good job. Get Textpad ;) It will make things a lot easier.
-
Good job. See, wasn't that hard :)
-
You can see the error. See where the colors start looking funky? if($_POST['flashnudity']=="){ $flashnudity = "<b><i>Extreme Nudity</b></i></br>"; $flashage += 18; You open a string and never close it. Download Textpad, turn on Syntax Highlighting, and this will help avoid these little errors.
-
No, US Dollars, not "Fun Bucks". You asked if I could help you and I replied. No need to be rude. Why can't you ask the person who coded it? Or start trying to do it yourself? Just seperate out the processing code from the output, and make sure you never put HTML before you try to set a cookie. Best way to learn is to start working on it.
-
[quote author=jesirose link=topic=122930.msg507619#msg507619 date=1169099015] you can use $_SERVER['REQUEST_URI']; [/quote]
-
PS: The file ends with an open if - is that how your actual file is? There's your problem. the last line is just if($_POST['flashnudity']=="1"){ You never finish it.
-
I suggest you download a text editor with line numbering, such as Textpad. (Plus, indent your php code, not just the html) 108 is echo "Your file was successfully uploaded!<br /></br>You can temporarily view this page by clicking <a href=\"http://www.warptweet.com/211612151419/$_POST['flashname'].php\">here</a></br>"; which looks okay to me... Can you post the actual error?
-
If you want me personally to fix it I'd have to charge you my $30/hour, because that's more extensive then just helping on the forum. Feel free to contact me if you want me to.
-
you can use $_SERVER['REQUEST_URI']; If it's on a topic, and your structure is like /topics.php?id=1 then you'd just save $_SESSION['topic'] = 1; and then redirect to your page. You don't need to know the whole URL, you should "know" it already.
-
Then get the coder to fix it. If you want to learn, you'll have to start somewhere. If you didn't write ANY of it, that's going to be hard. You could try paying someone to redo it if you don't want to learn. The processing needs to be before any output. That's all I can elaborate.
-
you could use a hidden input field on the login form. Is the login form displayed on every page? Just add the current page in the form. Or, if they have to go to a seperate page to login, whenever a topic is being viewed set the topic in the session, then after logging in check if they have a topic in the session and redirect there.
-
I think our two comments made that pretty clear. The less than, greater than and equal to symbols are taught in basic math. > is greater than. >= is greater than or equal to.
-
checkbox mail delete system not working out.....
Jessica replied to zhahaman2001's topic in PHP Coding Help
You didn't need them at all though. Did that work? -
Reorganize your code.
-
if ($flashage > 3){ } Right now you're (sorta but not really) setting it equal to itself plus 3.
-
checkbox mail delete system not working out.....
Jessica replied to zhahaman2001's topic in PHP Coding Help
Change to if($_POST[$mail[id]] == "on") Your {} are a little wierd. -
the button is a submit button on a form, then you use $_POST to get the value, and then use file writing, check out fwrite, fopen etc.
-
No problem. Best of luck.
-
Yeah you can't output ANYTHING to the browser before doing any header, session, etc. EVER. You have to include your processing stuff which sets cookies, redirects, etc, BEFORE any HTML EVAR.
-
Erm, you could make an array of the options, and use foreach, or call the function several times. [code] $options = array('Phone', 'Fax'); foreach($options AS $o){ printStuff($_POST[$o]); } [/code] Or just [code]printStuff($_POST['Phone']); printStuff($_POST['Fax']);[/code] Without seeing the code that's all I can suggest. You'll obviously have to modify it to suit you.
-
Do I have to bring my husband in? :-P Mootools.net has a great ajax framework.
-
Check out Google Analytics ;) It's a completely kickass system. Or, http://us3.php.net/manual/en/reserved.variables.php "'HTTP_REFERER' The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modify HTTP_REFERER as a feature. In short, it cannot really be trusted. " You could give them each special links like mysite.com?ref=1, mysite.com?ref=2, etc.
-
The update to the forum removed it. Plus, you can no longer edit posts after time, so you can no longer mark as solved. *shakes fist*
-
If you have NO idea, it'd be quicker to pay someone to work on it for you. If you're learning PHP, it'd be good for you to try to figure it out from the documentation. A quick solution would be to have one var with the domain and just change it when you move it. $domainURL = "mydomain.com"; When you move, change to $domainURL = "mynewdomain.com"; and then just <?=$domainURL?> when you need it.
-
fiat, that will mark either none or all selected.