498 Posted Topics
Hello, I posted a similar issue earlier - I fixed that issue that was throwing error messages and now my data from a form is being dumped to my table, well, most of it. It is not recording the Username or Password fields and I have absolutely no idea why … ![]() | |
Hello: Before I post code I will say that last year I hired a programmer to build one feature for my project. Today upon further inspection of the database/tables I am receiving errors that I have never received and I am at a loss as to their actual meaning. I … | |
Re: Empire of the Sun | |
Hello. I am attempting to implement a Captcha in my form using PHP. This, at first, seemed pretty direct; Yet upon viewing the form, no Captcha is displayed, only code. I noticed in the code there is an *echo*, Line 32 (Which I do not understand why that is even … | |
My email vaildation is working correctly now. But, I would like to alter the message color from black to red by styling it somehow. I have attempted such things as: { message = "Please, enter a valid email"; message.style.color == 'red'; writeMessage(message); return false; } The insertion being: message.style.color == … | |
Hello. I am finally figuring out some basic validation. My main interest at this point is validating email. The script I got online contains the following, but does not check for "com", etc: if (email.indexOf("@") == -1 || email.indexOf(".") == -1) This works but does **not** check for "com". It … | |
I am about to begin protecting a yet to be launched site againt injection attacks.(And other possible attacks) I am making use of a large database and must fortify this fully. I am researching this but am here to pose the question: **What should my main concerns be**? Please be … | |
Hello. I have been doing research for about a week on form validation (JS, jQuery, CSS). I already have a nice form, but I need to add the validation elements. I'm a bit stuck. I know what I do and **do not** want with the validation: **Want**: * Clean, nice … ![]() | |
Hello. Having some trouble figuring out a CSS footer issue. The footer should fill the page fully, not extend a horizontal scrollbar **and importantly**, not have a 3-5 pixel left gap. I've tried all I know to fix this. Here is the CSS for this: footer { float: left; min-width:100%; … | |
Yes, webpage size- Standard sizes? Dynamic? I don't know! I have been building websites since 2000 and the one area I have never, ever been able to fully understand is this topic. I need serious help with this. Explanations. My site(s) to render properly in any browser. **No horizontal-scrolling**. **I … | |
I am working with a form validation script; I am testing it first and all seems to work fine except for the email validation. This is a snippet of the script dealing with the email validation: else if(! eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email )) { $_SESSION['reg']['email']="Please enter valid email address."; For example, if … | |
[This is theoretical at this point - No code is written for this] On the project I am building (A forum of sorts) I will be the Admin: I will be the only person able to edit posts. Even the User, save for a 15-minute window (after posting), will **not** … ![]() | |
Hello. I am having a bit of trouble with being able to submit/record the data from a selected dropdown field to my DB. Here is what I know so far: 1. Connection to DB is fine; All other data fields are submitted and recorded to DB 2. The dropdown (To … | |
Re: I shall be doing this soon, that is, procuring a permanent paid host + business email via host. Q: If I provide a simple contact link/form through my future site, it handled by the host via their servers, I presume? Is this what this thread is addressing? Are there other … | |
A simple problem with a simple solution, I suppose. I have researced it but do not quite understand it. **Problem**: I have a very nice script for a dropdown that displays country names and the associated flags for each country within a form. This works very well, but... Examples of … ![]() | |
To begin, I have not written any HTML/CSS in about 4-years, so in a sense I'm relearning. My issue at this point is this: I want my footer to span the length of the window. Simple enough; But, it is leaving an approximately 10-px gap on the left of the … | |
(Mods/Admin: Please move if in wrong area. Thank you) I am interested in hosting ads on my site, but I have no idea where to begin. Simply put, I want this to be a selective, semi-targeted process; Companies such as RackSpace, for example. I would not accept just anything on … | |
(I am not sure if this is the correct area for this thread - Admin/Mods, please more if necessary. Thank you.) Hello. I write a lot of code. I save many back-ups, that is, current versions of the code in case I need to roll-back. This can be quite tedious … | |
Hi, I finally figured out how to take a row from a table and display it on a page. Big deal, huh? That was not exactly my main goal, though. When a User submits a form I need *that data* to display. I've struggled with this. I now figure that … ![]() | |
![]() | Re: This a great thread. Many concerns addressed and answered. I am working on the same sort of login system. |
**I want to report a possible issue/bug**: I just replied to a post, went to look at a tutorial link, came back to the thread I had created/just replied to, and the reply I made was gone (This has happened before). Basically, make a reply > leave page > return … | |
I am using mysql_fetch_assoc to retrieve and display an array; This is what I recieve upon loading the page: *Warning: mysql_fetch_assoc() expects parameter 1 to be resource* I have researched it and do not understand it. **Snippet* while ($row = mysql_fetch_assoc('$result')) { echo $row["emp_name"]; echo $row["emp address"]; } Thank you, … | |
*Yes, the reoccurring issue* I have yet to solve: Posting the contents (Saved to a DB) of a form to a redirected page. Everything works except the rendering of the form data on the redirected page. I've been trying everything that I can think of. I've been researching this for … | |
I call it "Compartmentalization", that is, taking a long .php file and breaking it down into smaller components; Seperate .php files. This will keep everything tidier, cleaner, more organized, reusable and I believe, more secure. **Example** (Not my code - Maybe not a *perfect* example of this idea, but for … | |
A simple question (One which I do not have the answer to yet). One small yet important aspect of my current project is collecting IP addresses via email registration/email confirmation. I assume seeing an IP is not difficult (User's email header?) **My question is**: *Is this IP the IP of … | |
Receiving this upon run: Warning: mysql_connect(): Host 'srv26.main-hosting.com' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts' in /home/u871385583/public_html/ob_re4.php on line 32 NEIN! Host 'srv26.main-hosting.com' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts' I am not sure about how to go about *flushing the host*, … | |
I am still working with redirection. **This** works great, but is not exactly what I need: <?php ob_start(); ?> <h1>ob redirect test</h1> <?php $redirect_page = 'https://www.google.com'; $redirect = true; if ($redirect == true) { header("Location:$redirect_page"); } ob_end_flush(); ?> I have spent all day trying to figure out how to use … | |
Hello. What I am planning to do for User registration in regards to agreeing to the EULA: 1)For example, there will be three conditions the User must agree to by selecting checkboxes - Only one condition displayed at a time. 2)Upon checking the first condition checkbox, the second condition appears … | |
I have been researching this as I am getting the distinct feeling I will have to transition my code to this soon, eventually. From your experience, can someone provide a brief overview of the benefits of MySQLi and why I should transition. Is it even necessary? I'm not sure. Any … | |
I am still working on the redirection issue (As noted in a previous thread here). I think I may have found a nice solution via a video tutorial on the subject. When running this test script, it should simply load google.com; The result though is a "Page not found" screen. … | |
*I apologize if this has already been asked/answered* I am have trouble with this, although I imagine the solution is rather simple: 1. User completes form and submits 2. Page either reloads displaying User-entered data *or* redirects to a *new* page displaying said data for User I have been trying … | |
After years of tumultuous shenanigans, I have returned to <DANIWEB>. I am primarily here to research and study PHP/MySQL. I look forward to my time here, helping others and getting help with my project(s). Note: I am formally known here from a recently-created, new account, **The_Thorn**. Regards, Matthew | |
Re: Cereal: It is I, **The_Thorn**. This is my original account, mattyd, dating back years and has been recovered for me by the gracious <daniweb> team. I am looking at your code samples and planning to implement. I shall let you know how it all works out. -Matthew | |
Re: Explore scripting languages such as: * Ruby * Python * PHP Many people underestimate their power and potential usages. I will tell you, they can create wonderful, fast programs. Regards, Matthew | |
Re: What I am confused about (And I have seen this in other examples) is contained in the following: ` // you can now give values to your variables // whether this happens now, or before the query doesn't matter, // as long as it happens before execute. $name = 'pritaeas'; … | |
Re: [I]Not[/I], iTunes. But probably around 3000 MP3's. | |
Re: This is an excellent article for both new programmers as well as seasoned veterans. I program for a living but I also do it for my own pleasure. It can be enjoyable and should always be to one degree or another; I find it hard to visualize doing such tedious … | |
Re: [LIST] [*][B]Flyff[/B] (Fly for Fun) great and beautifully designed game-- much fun[/LIST] | |
Re: [LIST] [*][B]You get a hologram of yourself :mrgreen: [/B][/LIST][LIST] [*][B] I put in a pirated mix-CD of [I]Iron Maiden's[/I] best 20 songs[/B][/LIST] | |
Located in the upper, left-hand corner of the GUI window is a small "[COLOR=red][B][I]Tk [/I][/B][/COLOR]"; is it possible to get rid of this entirely? It is only a small detail, but a detail none-the-less that I wish to have control over in regards to the final product. I would also … | |
Re: [B]Pepe Le Pew[/B]. :) I thought as much but some of the comments are invalid; I, unfortunately, rarely talk with my parents. | |
Recently my girlfriend's laptop "died", that is, it may be only the monitor but in any case, it is no longer functional. [U] My question is this[/U]: We would like to recover all data from the laptop hard drive without having to take the laptop to a shop to have … | |
I am working on a fairly simple site. At this point I am wanting to assemble 25 images on the [URL="http://stormtrooper.webng.com/"]homepage[/URL] which when assembled will form a [I]whole[/I] image (where each separate image will be clickable). I am only at the point of trying to getting the images arranged as … | |
**Note: I'm not sure if this is the appropriate area for this post-- please move if necessary. Hello. I am working on a small Macromedia Flash project, just learning more about Flash and getting acquainted with the Flash interface as well as Actionscript; my question is not in regards to … | |
Re: [quote=TheNNS;289404]Not really, just that I need to screw up my friend's computer at work. We're always attacking each other on the computer, but this time it's gone too far. He put a script on my computer so that every time I log on, the computer restarts, or logs off, making … |
The End.