Jump to content

you_n_me_n_php

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Everything posted by you_n_me_n_php

  1. that's immaterial. but since it appears to be "open season" let's entertain your question. the answer (though probably not much more relevant to your question than is your rather lacking, Socratic, and scathing response to my original post) is simple: it has nothing to do with coding. That's the short answer. The long answer isn't as nice, and is even more pointless than your question, as it has to do with a marketing decision that I agreed upon with my client. is there a marketing forum, here? no? then I guess I am at least a little relevant and sensible, because I only conferred here on coding issues and saved my marketing dilemmas for those who are (evidently) much better suited to deal with such things. in short, i know where I am. oh, I'm sorry; we're talking about "ethics", here, not "coding" or "marketing" at all. damn! and here i was thinking all along that you were asking me to entertain a marketing decision, when all along you wanted to know why I was LYYYYYYING!!! Okay, then we should debate that, my friend, at c-h-r-i-s-t-i-a-n-i-t-ydotcom. otherwise... nevermind. Last, please consider the response from another forum (facilitated and monitored by Author Larry Ullman). My original post here on this topic was posted there, first; then I copied and pasted it onto your forum... This was a response directly from the author. And his kindness actually did himself more good than it did me. Imagine how many people are actually going to read it and surmise that his site (and his books) are a good place to learn PHP? Speaking of good marketing...no, I'm sorry. I promised not to talk about marketing. You almost tricked me into talking about marketing again! Shame on you!!! Don't you know where you are??? Anyhoo... I can't tell you what to think about the author's response. You are what you are (whatever that is). Maybe you're a God or something. But I would much rather have to learn PHP than decency, patience, and human kindness. After all, you can teach someone how to code functions and they will eventually get it--even if they are dumb as donuts. But you can't change the way your mother raised you. You're either fundamentally good or fundamentally fucked up. Then, too, you never really know whom you're actually talking to in these forums, do you? Well, therein (partly) may lie the problem. One day, I will write a book entitled, "And Be Careful to Entertain Strangers" or "I Dined With Angels Unawares". Again, never mind. Take care, and keep your 64 colors always in order (oh merciful, brightly hued, splendid, "ethical" and qausi-beneficent coding potentate).
  2. Hi, I'm dong a downloads page for a band. I need to be able to count how many times each download link is clicked. The following may be helpful to know: 1. I would like to initialize the "count" for each link at some random, arbitrary number like "1500" (for marketing purposes). I don't want to start the thing at "0" and make the band look like a bunch of nobodies. 2. I would like to record each users IP address to make sure their click is unique 3. I would like to display the click numbers right next to each download link 4. The information needn't be output anywhere else (even though I will consider outputting it to a text file for later reporting purposes if the coding doesn't get out of hand. The thing has to be complete by Saturday 7/23) I was torn regarding whether or not to start writing code, as I have been advised in other forums that "providing my own answer" or telling someone "what I think" is going on can sometimes confuse the issue. Rather, as an educated beginner, it is my understanding that I should listen very closely since I have no idea where to start with this outside of the page I have herein provided. I am, however, willing to work very hard if I can be pointed in the right direction. With this in mind, I thought I should start with pseudo coding, maybe? If my approach is wrong, please advise. In general, I just need to know where to start. I guess the questions and the code will start on my end once that happens. Thanks! Roland
  3. Awesome, PFMaBiSmAd! That got it done and also made me learn about 4-5 things. The first reply regarding where my redirect was located was the first thing to learn. You guys are great! That's why this thing is my home page. Thanks so much, again!!! Roland
  4. thanks for the reply. i put everything as you have it here (and even before the doctype definition). I still get the same message regarding an undefined index for "agree" and "disagree" respectively...
  5. Hi, I just want to put up a simple page that has an NDA to which someone can either "agree" or "disagree" and then automatically be forwarded to specific pages accordingly (google and yahoo are just there for testing). Problem is that I keep getting and "Undefined Index" for both "agree" and "disagree". What am I doing wrong? Here is my code: <form id="nda" name="nda" method="post" action=""> <input type="submit" name="agree" value="I agree" /> <input type="submit" name="disagree" value="I disagree" /> </form> <?php if($_POST['agree']){ header("Location: http://www.google.com"); } else if ($_POST['disagree']){ header("Location: http://www.yahoo.com"); } ?> Thanks!
  6. "Freak" is soooo apropos to the conversation concerning what you have to be in order to do this PHP stuff (and do it right). What else could you be? Amid my slow, painful, freakish morph (and the whole process of "becoming..."), I am the Marketing & Interactive Media Manager for a local shoe store. It is a small shoe store that hired me to do things that I couldn't get larger companies to agree to. Times are changing, huh? Before this, I thought I had an agency. But when I found out I didn't want an agency, I realized I didn't have one after all--no matter how many business cards I passed out. In reality, I just have some specific and proprietary stuff I'd like to do for myself and my boss. That aside, my ultimate reason for being here is that I love php (and programming as a whole). Additionally, it means more to me to be able to do what I want to do with the language and watch hit happen than it does to make money. Besides, coding is therapeutic. Thanks for being here. I will donate regularly, because it's the right thing to do (in my opinion). Talk to you, soon...
  7. Hi Everyone, I read a few things before having posted this. I think I am in the right place; but as a caveat, please correct me if I am in the wrong place. At any rate, I am a designer who is just learning to code in php. I am studying on my own, now. This is only my second post here, and I don't know what I am doing. I have never written an email script before and very little of what I have seen makes sense to me, as yet. I would like to: 1.) have the "Is this urgent?" checkbox checked if the user selects either: a.) I am a Journalist b.) Received wrong order c.) Order not received d.) Credit Card Issue 2.) Send this email The code is below. <div id="form"> <form id="contact" method="post" action="contactForm.php"> <div class="fields"> <fieldset> <!--this is the name field--> <label for="name"><span>Name</span> <input type="text" name="name" id="name" /> </label> <!--end of the name field--> <!--this is the email field--> <label for="email"><span>Email</span> <input type="text" name="email" id="email" /> </label> <!--end of the email field--> <!--this is the telephone field--> <label for="telephone"><span>Telephone</span> <input type="text" name="telephone" id="telephone" /> </label> <!--end of the telephone field--> </fieldset> </div> <fieldset> <!--this is the reason menu--> <label for="reasonMenu"><span>Reason for contact</span> <select id="reasonMenu"> <option selected="selected" value="choose">Please Choose</option> <option value="general">General Inquiry</option> <option value="designer">I am a Journalist</option> <option value="corporate">Corporate Gifts</option> <option value="item">Item Request</option> <option value="designer">I am a Designer</option> <option value="supplier">I am a Supplier Rep</option> <option value="vip">VIP Candi Ladies</option> <option value="orderNot">Order Not Received</option> <option value="orderWrong">Received Wrong Order</option> <option value="credit">Credit Card Issue</option> </select> </label> <!--end of the reason menu--> <!--this is the item number field--> <label for="item"><span>Item Number?</span> <input type="text" name="item" id="item" /> </label> <!--end of the item number field--> </fieldset> <fieldset> <!--this is the message box--> <label for="message"><span>Message</span> <textarea name="message" rows="10" cols="25" id="message"> Please type your message here. </textarea> </label> <!--end of the message box--> <!--this is the urgent checkbox--> <!--<div id="checkbox">--> <span id="urgent">Is This Urgent?</span> <label for="checkbox" id="checkbox"> <input type="checkbox" name="checkbox" value="URGENT!" id="checkbox" /> </label> <!--</div>--> <!--end of the urgent checkbox--> </fieldset> <!--this is the submit button--> <div id="sendBtn"> <input type="submit" value="Send This Form" /> </div> <!--end of the submit button--> <!--this is the reset button--> <div id="clearBtn"> <input type="reset" value="Clear The Form" /> </div> <!--end of the reset button--> <!--end of the message box--> </form> Thank you all in advance for your help.
  8. Ken, Well, I just found home. This page will stay up all the time. Thank you, again (both of you), for your kindness and expertise. Roland
  9. Okay (and I ain't just kissing butt here, either). But DUUUUDE!!! Are you guys some FREAKS or what??? It couldn't have taken either of you more than 2 mins to write that code (if that). Mother of God! Look, I just registered as a new use 30 minutes ago. I have been in other communities before, but... Well, anyway... I have just set my home page to phpfreaks. Thank you, very kindly!
  10. Hi everyone, I'm new to php. I want to put in a line break after the echoed count value if it has a "0" in it (i.e. 20<br />,30 <br/>, etc.) Is strrpos the right function to use? Does php have an IndexOf() function? <?php $count = 0; $pos = strrpos($count, "0"); while($count <=4000) { echo $count; $count++; if ($pos ==true) { echo "<br />"; } } ?> Thanks!!!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.