Jump to content

oni-kun

Members
  • Posts

    1,984
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by oni-kun

  1. Since there are many forms, that I may want to leave blank, I guess I need to use: if (!empty($_POST['len31']) { UPDATE ... //the value } else { INSERT... // "", blank space to retain the table } This should be right. I'll need to write A LOT of code if I don't use a for loop in this, Time to have fun
  2. I still think this would be nice, On the odd post I almost not want to write code because of having to add formatting so high and low. [ot]Is OT or PHP more important? [/ot]
  3. Mhmmm........ I still stand by, if the user wants help than they should help us help them. Posting something obscure/complex (such as cags said) will not get many of the (10 maybe 20) users browsing.
  4. Indeed it was the standard thing for users of those older systems to read codes from a manual, it sounded kinda nice, since even the today's idiot could get something fairly simple done, as they just copy->paste, for batch jobs!..hehe. I love dabbling into BASIC sometimes, Good old ANSI and simple simple syntax.Most of the versions (QBASIC, FreeBASIC) seemed similar enough to get used to them all. But I cannot imagine anyone here using COBOL..... [ot]Yeah, I'm just just under 18, DOB in April @SemiApocolyptic[/ot] EDIT: Oddly I learned HTML and PHP at the same time, I don't know how I managed to learn HTML fast enough to be sufficient with PHP.
  5. I think I have it resolved. So my final question is. A) Can insert blank tables, IE "" and.. B) How do I overwrite those blank tables, if I enter a value finally into the corresponding box? will it automatically with insert, or do I need UPDATED?
  6. Do you know how to use GET/POST? You can send them to "page2.php?id=1&form=submitted" On page2.php, $_GET['id'] and $_GET['form'] will be passed there (as it's in the url) POST does not change the url, but it's a bit more complex if you don't know how to use forms/headers.
  7. Lets say I enter the result for day 1 (pretend the checkbox doens't say anything), If I update one box and hit sumbmit, than later enter a few more and hit submit, as long as the other previous boxes are filled with previous records, they'd replace the old ones? (ones I already entered will appear, so will it just 'update' the previous ID's) and update the new one?
  8. I have an 'exercise' log that I wanted to do as a project for myself and my mind, lol. Basically it has the format: [checkbox] [txtbox - length] [txtbox - curweight] And there are 31 sets boxes going down, named: [did_or_not], [dec25len], [dec25weight] [did_or_not], [dec26len], [dec26weight] ..etc.. I know how to create a table to put them all in, but I want to come back to the table (page), say in a week, and update 2-3 tables at a time, if I couldn't before. What command can I use to update all? the table, rather than to (replace?/make a new one on submit?) Or does it update the table when I submit the form and overwrite the table anyway? The table will have standard incrementing ID's, with the three entries (did/didn't exercise, length, weight)
  9. First time I've created an off-topic thread, so I wanted to know all the details of what languages you started, when, and how you got to become a programmer. (Your certification? Current job?) I saw a few things on youtube when I was very young about how to create some Windows apps and got myself started with VB.NET, The free IDE was great and I had plenty of fun with designing consoles and writing simple but useful applications, but I never really got off anywhere. In later years in my teens a close friend loved PHP, so I bought a web host slot and slowly started whipping out programs and designed my own site, PHP is awesome! I managed to actually be able to write full loops and functions without looking up reference and things. No debugging engines, resources, compiling, lack of portability (.net framework), bleh.. You know I've come to know BASIC, a bit of C++ and Java over the years as well.. You?
  10. MySQL does not run through port 80. It's 3306, and is accessable serverside (or via your host normally) with full control. Yes, there are CSV and XML paring functions in PHP and should not be hard to implement provide you have knowledge to. There is no 'automatic' workings for these functions, you need to learn forms and sessions and the basics before you can even hope to use the CSV/SQL part of it..
  11. You are not to pass a parameter unless you need the function to. An argument with a default value should not be preceded by an argument without a default value. If you wish to leave $c and $a off, than do so. xxx ($b) { var $a = "foo"; var $c = "bar"; return $a, $b, $c; } http://php.net/manual/en/language.functions.php
  12. No, I don't want any hostname. I want the user to be able to see on the sms that it is just from "7785555555". So now you expect an e-mail being able to be recieved, from a host that does not exist. The host will drop the e-mail like it's a virus, won't land even in your spam box, I doubt it
  13. That's not true. I just did it in Gnome with Firefox. Because there was an alternate written to move text from box to box, I was just referring to a Windows specific machine.
  14. Yes, but without 5+ years knowledge of CPP and Direct X interfacing, you're out of luck. I'm just giving you the point, There's no possible way to prevent the user to screenshot your site, if a website had such control, Viruses would be able to take control of keys by just browsing the site! If you could tell my why you need this function, I can give an alternative. But you won't find one with just that in mind.
  15. You know of any good sites to read up on how exactly to utilize AJAX to submit a form? http://www.w3schools.com/Ajax/Default.Asp Once you learn how to just, well, copy&paste the AJAX initializing functions, what it does it sends data (via get or post) to a php file, gets the contents and uses JS to output the results of the PHP page. Since It's JS it doesn't refresh the page, to say "Successful"
  16. No, this has nothing to do with the browser. If it were an AX extension it still could not prevent a screenshot. I meant a CPP/DX .exe not a web browser.
  17. You've got two options: 1) Create an offline program that can be un-screenshottable 2) Nothing. The above user's post. Does not work on Firefox, as JS has rules. And what if they're on a browser other than Windows? What if they turned JS off? Many users have NoScript. It takes seconds to be able to screenshot your page.
  18. You really think PHP can be binded with Direct X? It wouldn't even run on Mac/*Nix. I was just listing the ONLY possible method of preventing a screenshot. Further, what stops them from using a good camera on the screen? You're asking of the impossible.
  19. This is basically impossible. Simply using PRT SCR doesn't even query the browser, so it'd happen no matter what. The ONLY way you can accomplish this is physically placing the layer onto a Direct X buffer, which will not allow bufferside sccreenshots to show anything but the blank backbuffer. EDIT: What is your need for this? If you don't want someone to steal an image, watermark it.
  20. What do you mean error message? But yes, If you understand how the function works, Use PHP to echo that javascript into a <script> tag within/outside head. So basically if the get variable = contact, it'll force the accordion to slide to contact.
  21. I really wish I knew more php and javascript. Not really sure how to go about doing this. I will see what I can find. What is the JS code that switches the accordion to the 'contact' page? You can echo out that exact code, such as "switchpage('contact')" or whatnot.
  22. $this->assignRef('Banners', $Banners); parent::dislay($tpl); } Why are you ignoring such an obvious mistake?
  23. Maybe you can try such a method? Like "action=index.php?p=contact" , With that GET header defined, when someone enters something, you can echo the proper JS that'll bring up the 'contact' section, or whatever you need to do. Doesn't sound TOO hard.
×
×
  • 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.