69 Solved Topics

Remove Filter
Member Avatar for mattyd

When I submit a form and the page refreshes the password and password confirmation values are being displayed in the address bar. Why is this? Can anyone explain this and give me an idea how to suppress this behavior? Please see attached screenshot. Thank you in advance! ![pass12.jpg](/attachments/large/0/f9784f8c4ab7d06aef077fb0ecdc4988.jpg "align-center")

Member Avatar for Bhavna_2
0
2K
Member Avatar for mattyd

I have recently been using XAMPP for dev. Although I'm new to XAMPP, the recent issue sprung up surprisingly, the simple script running a day before. The script is just being used to test the ability to capture/display an IP address; this will later be used in a larger project: …

Member Avatar for mattyd
0
654
Member Avatar for mattyd

I am searching for the logical Python logical operator "or"; While C++ is: 1 || 4 (using pipes) I assume Python would simply be "or", as in: 1 or 4 Or something like this: if var1 == "image0.GIF" or "image1.GIF" or "image2.GIF": varValue = 10 Is this syntax for Python …

Member Avatar for rahul_64
0
53K
Member Avatar for mattyd

I want to collect basic user information when they land on an index page, such as: IP Country City State Zip Code I've looked into sites such as ipinfo.io that offer a service regarding these details, but think it may be easier to collect the same info via PHP. From …

Member Avatar for Dani
0
448
Member Avatar for mattyd

I am currently working on using Javascript arrays to swap images for rollover buttons. This was working perfectly for one build about a week ago. That is, I am working on something else now and tried to use the same code that worked for this - it's broken now; -A …

Member Avatar for mattyd
0
303
Member Avatar for mattyd

Hello. I am currently attempting to convert my inline-css for text boxes into classes for my external style sheet; I thought of using class selectors but do not fully understand some aspects of them. An example I found online: ` <!DOCTYPE html> <html> <head> <style> .center { text-align: center; color: …

Member Avatar for Bensirpent07
0
204
Member Avatar for mattyd

Hello. This is probably something very simple that I am missing (Or something that I have done wrong), but upon filling in and validating all fields of the form and pressing the "Register" button nothing happens; Usually the page would reload as if the form had been submitted. The code …

Member Avatar for Troy III
0
399
Member Avatar for mattyd

Hello, I am wanting to collect the IP address of anyone that visits my site and submits a form (Saving it to my DB). I have been researching this and have found the following: ` <?php if (getenv('HTTP_X_FORWARDED_FOR')) { $pipaddress = getenv('HTTP_X_FORWARDED_FOR'); $ipaddress = getenv('REMOTE_ADDR'); echo "Your Proxy IP address …

Member Avatar for jj.dcruz
0
1K
Member Avatar for mattyd

Hello, I am currently using bound parameters in regards to user input on my form. I have read about escape strings also and thought of using both together. Is this possible and, importantly, is it necessary considering I am already using bound parameters? I would like to use both. Thank …

Member Avatar for mattyd
0
273
Member Avatar for mattyd

Hello. I have one field on my submission form which is for the User's zip code. Originally I had it set to int(5), but when I submit my form with a five digit zip code it only stores 4 of the characters, omitting the first digit. Example: On the form …

Member Avatar for mattyd
0
222
Member Avatar for mattyd

Hello, I have just attempted to update my database login page to MySQLi and also use prepared statements but upon submitting a form I receive the error "Access denied for user 'admin'@'localhost' (using password: NO)". I have been researching this before posting this here but have only come across sites …

Member Avatar for diafol
0
849
Member Avatar for mattyd

I am issues involving the CSS for my HTML index page. I will be honest, I did not write all of the mark-up/code so now I am in discovery/repair mode and find myself a bit lost in regards to the external CSS file. I have gone over and over it, …

Member Avatar for DaveAmour
0
471
Member Avatar for mattyd

There is an issue with a page I am developing that I just noticed. Please take a look at the page: http://redlinedown.com/index700.html# On the top, black panel bar, notice "Log In | Register" in blue > Select this link and watch as the bar opens and drops down. When it …

Member Avatar for showman13
0
240
Member Avatar for mattyd

Hello: I am getting a parse error while running a file on my server on my home machine: Parse error: syntax error, unexpected end of file I have been researching this for a few hours now but have had no results to overcome this error. In the editor it is …

Member Avatar for Albert Pinto
0
346
Member Avatar for mattyd

Hello. I am having a small problem involving a text label not displaying correctly over a field. It was fine until about a week ago; I believe I must have changed something and now I do not remember what I did that is causing this error. The State text label …

Member Avatar for Troy III
0
339
Member Avatar for mattyd

Hello. I am attempting to add a Google reCaptcha to my form. This form is located on an .html page, but I am reading documentation that states I should rename the page with a .php suffix. I did this and reloaded the page and, obviously, nothing was displayed at all. …

Member Avatar for annya
0
229
Member Avatar for mattyd

Hello. I am beginning the process of implementing password encryption for User's on my future site (The site is not live or available yet). I have been reading up on hashing passwords and storing them in the database. **My question are as follows**: * I believe it has said that …

Member Avatar for iamthwee
0
396
Member Avatar for mattyd

Hello. This is a multi-part question. I have researched each aspect of it before posting here, but I am posting this in case anyone may point out something I might have over-looked. * I am building a profanity filter to be used upon submission of a form - I assume, …

Member Avatar for almostbob
0
526
Member Avatar for mattyd

I am recieving a notice(s) multiple times when running a file: Notice: Undefined index: Telephone in C:\xampp\htdocs\demo\nest_Demo_thrasher.php on line 111 Notice: Undefined index: eMail in C:\xampp\htdocs\demo\nest_Demo_thrasher.php on line 112 I have researched this and the ways to solve it. Most ways involve isset it seems, but none of my code …

Member Avatar for pritaeas
0
1K
Member Avatar for mattyd

I am working with two seperate files which contain similar code - One throws a parse error for an identical line, the other does not. I do not understand why this would be. **The error on the file that will not run is**: Parse error: syntax error, unexpected '2' (T_LNUMBER) …

Member Avatar for mattyd
0
422
Member Avatar for mattyd

I am beginning what appears to be the daunting task of securing all of my code from injections, XSS, etc. I have been reading about some of it and it is a bit overwhelming. I just wanted to come here and ask for experts' advice on the main things I …

Member Avatar for mattyd
0
456
Member Avatar for mattyd

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 …

Member Avatar for diafol
0
259
Member Avatar for mattyd

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 …

Member Avatar for mattyd
0
244
Member Avatar for mattyd

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%; …

Member Avatar for mattyd
0
172
Member Avatar for mattyd

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 …

Member Avatar for Coloradojaguar
0
128
Member Avatar for mattyd

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 …

Member Avatar for cereal
0
236
Member Avatar for mattyd

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 …

Member Avatar for mattyd
0
249
Member Avatar for mattyd

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, …

Member Avatar for mattyd
0
296
Member Avatar for mattyd

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*, …

Member Avatar for rubberman
0
209
Member Avatar for mattyd

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 …

Member Avatar for Dani
0
394
Member Avatar for mattyd

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 …

Member Avatar for mattyd
0
136
Member Avatar for mattyd

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 …

Member Avatar for mattyd
0
176
Member Avatar for mattyd

Hello. I have been following a great tutorial that I found regarding searching a database: Tutorial: [url]http://www.phpfreaks.com/tutorial/simple-sql-search[/url] When I used this and ran it from my server (doing a search of the database), I bookmarked the page; my question relates to the next step: When I return to the page …

Member Avatar for mattyd
0
121
Member Avatar for mattyd

Hello. I need some direction for the following problem (I am not sure where to begin my research): I essentially, using PHP and MySQL, allow a user to enter character data into a form, submit the form, and next have this data saved to the database, then a formatted version …

Member Avatar for mattyd
0
777
Member Avatar for mattyd

I have one, reoccurring issue that arises each time I run this incomplete program I am working on; I have spent much time attempting to locate the bug. I am convinced it arises from a simple error. Problem: User has made a "deposit" but when the User makes a "withdrawal", …

Member Avatar for peter_budo
0
96
Member Avatar for mattyd

I have addressed this problem sometime ago; I have either misplaced, misunderstood, or never received a response to this issue so therefore I am again attempting to deal with a Python issue: I am towards the end of a build, and I am dealing with button commands, something that was …

Member Avatar for TrustyTony
0
379
Member Avatar for mattyd

This demonstration was originally proposed to be posted as a Python tutorial but with further inspection it was deemed more of a "how-to" guide, in this case, how-to create simple animation via Tkinter (Tool Kit Interface) All the necessary elements are included in the attched zip file. This includes: [LIST] …

Member Avatar for vegaseat
1
244
Member Avatar for mattyd

[COLOR=Black]** I am not sure if this is the correct area for this post-- please move to correct forum if necessary-- thanks.[/COLOR] I am redeveloping the website for the company I work for. It is going along quite well but I have a question in regards to Flash; I have …

Member Avatar for Ankitpb
0
171
Member Avatar for mattyd

Could some one please help me the definition of "Break apart" in reference to using Macromedia Flash; I have just begun using Macromedia Flash 6.0 and have been studying tutorials to get the basic, introductory feel of it. At one point it calls to use break apart for a JPEG …

Member Avatar for mattyd
0
125
Member Avatar for mattyd

Upon replying to a thread in Geek's Lounge I keep getting this message: [COLOR=Black][URL="http://i52.photobucket.com/albums/g31/reranger/char1.jpg"][I]"The message you have entered is too short. Please lengthen your message to at least 1 characters."[/I][/URL] Even when I add one character it will still not submit, giving me this same message again. I have never …

Member Avatar for Dani
0
327
Member Avatar for mattyd

I am at the end of a build and am putting some minor touches on and testing; one area I suppose I took for granted (and have honestly not seen a need yet to fully deal with) is the Tkinter buttons. The buttons perform fine overall as to their function; …

Member Avatar for mattyd
0
18K
Member Avatar for mattyd

I am searching for the syntax that will allow me to arrange widget buttons in a Tkinter GUI in a specific manner; currently I have three (3) buttons that are stacked[I] vertically[/I] on top of one another. I wish to arrange the buttons so that they form a row of …

Member Avatar for mattyd
0
3K
Member Avatar for mattyd

[U][B]I have two questions regarding Tkinter GUIs[/B][/U]:[LIST=1] [*]I have three buttons in a GUI; at times it seems that the buttons "stick". By this I mean when the mouse is clicked on one it may activate or it [I]may not[/I]. They all work correctly in regards to there function(s) but …

Member Avatar for mattyd
0
189
Member Avatar for mattyd

I am in the end part of a Python Gui game build; it is going quite well but I am finding that I underestimated one area of the logic, incorrectly coding it: The game is blackjack. One area that, although it seemed simple on the surface (and in fact it …

Member Avatar for woooee
0
108
Member Avatar for mattyd

Hello: I am new to Java and I am working on a tutorial to familiarize myself with this language. The tutorial is a walk-through in building a basic text editor. So far the build is going fine, but I have come to a point where I am unsure how to …

Member Avatar for mattyd
0
265
Member Avatar for mattyd

About one month ago or so my Dr. Python compiler (interpreter) died. I had closed Dr. Python to go and eat dinner then came back to re-open and continued where I had stopped and... nothing. This came at a terrible time as I was in the middle of some very …

Member Avatar for Ene Uran
0
201
Member Avatar for mattyd

[B]Unbelievable[/B] :eek: [url]http://www.i-am-bored.com/bored_link.cfm?link_id=21387[/url]

Member Avatar for The Dude
0
34
Member Avatar for mattyd

My current GUI program, in part, will display a button which the user may choose to press (or not, in some cases): [code] btn1 = Button(root ,bg="Black", text="HIT", image=image01,command=show_image2) btn1.configure(state=NORMAL,background='red' ) btn1.pack() [/code] This is basic and works fine. The issue I am having is that after the button is …

Member Avatar for mawe
0
3K
Member Avatar for mattyd

Simply, I need to understand the basics of button binding. I have researched [URL="http://www.pythonware.com/library/tkinter/introduction/events-and-bindings.htm"]this[/URL] already and have decided just to ask for instruction. For example, one of the programs I am building currently will require, at a certain point, user input; I want to be able to know when a …

Member Avatar for sneekula
0
94
Member Avatar for mattyd

Hello: [I]** I have been researching and experimenting with this with tutorials from many sources but can not even begin it to get it to work it seems.[/I] I have a very small yet important Python program that I must make into an executable file within a week's time or …

Member Avatar for vegaseat
0
292

The End.