Jump to content

shoopaie

Member
  • Posts

    24
  • Joined

  • Last visited

shoopaie's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Wow! You guys are SMART! Someday...maybe...i'll get there. Thank you so much!!!
  2. This is for all the pro's out there I need a way to create a dropdown box, which i know how to do, but then depending of which value is selected, I need it to display a different "add to cart" button. For example, I need a dropdown called "Language" which has values such as "Spanish" "Italian" and "French". Once a user chooses a language, I need the correct "add to cart" button to display. I don't want 11 different "add to cart" buttons, each giving the user the ability to buy the video in their own language, so i'm needing something clean. Any ideas? Is this a php topic, or does this require javascript or something? Thanks so much.
  3. To make this as basic and understandable as I can, how do i take a handful of variables (created FROM a form) and send them to another file that has collected other variables from a second form, so that I can email them all at the same time, instead of two different emails. So basically is i have $fn, $ln, $phone, $email, stored from one form, and $ftp_un, $ftp_pw, etc from another form, how do i collect them all into one file to be processed? Thanks for the help. I am thinking in my head there should be a way to take the variables from form1.html, and form2.html, and have them all processed in form_process.php, then on to be emailed. I remember studying some "constants" and "global variables" but nothing that is ringing a bell. Is constants, or global variables, or custom functions accessible to a file that isn't their source file? I cannot include the file or else i include alot of extra fluff...
  4. Nice! that got rid of the background color. Now for the position adjustment. Are IE and firefox that far off from each other??
  5. I was wondering if anything has encountered this issue in IE9, which also seems to be there with IE8. I am trying to insert an image to replace default input text boxes. In opera, firefox, etc, the white background behind the transparent .png images do not show, however in IE they do. Here is my css code for these input boxes. The first pic is of IE buggy, and the second picture is firefox displaying it correctly. input { background:url('images/whitebutton.png'); height:30px; padding-left:12px; background-repeat:no-repeat; margin-right: 0px; float:right; outline: 0; border:none; background-color:none; } My standard HTML code: <form action="registerSubmit.php" method="post" /> Name: <input type="text" name="name" /><br> Username: <input type="text" name="username" /><br> Email: <input type="text" name="email" /><br> Password: <input type="password" name="pass1" /><br> Password (again): <input type="password" name="pass2" /><br> <input id="submit" type="submit" name="submit" value="Register!"/> <input type="hidden" name="registerSubmit" /> </form> So if anyone knows how to get the white background gone, and the inputs to lineup correctly instead of being offset in IE, that would be cool. And, if someone knows a good website that shows fixes to known IE bugs, that would be great too, thank you!!! Adam.
  6. I found the answer to the problem, though easily overlooked. The original script had a line in the mysql_query that looked like this: $check_info = @mysql_query("SELECT * FROM `clayton` WHERE `username` = '$user'"); My code looked like this: $check_info = @mysql_query("SELECT * FROM 'clayton' WHERE 'username' = '$user'"); Apparently there is a HUGE difference between an apostrophe and a grave accent (the little dude on the tilde key, under the ESC key) that surrounds the words "clayton" and "username" lol...who knew.
  7. Very nice Idea. Variable $user, and $pass echo out correctly. Variable $check_info, and $user_info echo out nothing. Is that correct? Also, something interesting is that when i enter no username or password, it says login successful.
  8. I am attempting to retrieve information from the database to compare against information given in a login form. However, I know the information is in the database, and is correct. I also know I am typing it in correctly. Username and password are getting an "Invalid Login" response, when I know they are correct. From this snippet of code, is there anything wrong??? Thank you. //validate the info given $user = mysql_real_escape_string($_POST['username']); $pass = mysql_real_escape_string($_POST['password']); //check the database $check_info = @mysql_query("SELECT * FROM 'clayton' WHERE 'username' = '$user'"); $user_info = @mysql_fetch_assoc($check_info); if($user == $user_info['username'] && $pass == $user_info['password']) { echo "Successful Login!"; } else{ echo "Invalid Login"; }
  9. How do i turn off php notices in php.ini??? Thanks.
  10. Thank you kindly for the answer. I had a slight idea of the period being concatenation, but couldn't quite figure out what was being "concatenated" since one variable was being added to one field while the next was being added to an entirely different field. Strange I thought. I'll just chalk it up to not being needed, so i most likely won't ever use it. Thanks again!
  11. Hello everyone, I have been learning about the "mysql_query" business, and from a file i downloaded to reference, I see that the developer has placed periods before and after his/her variables inside the INSERT INTO statement. Any reason why? And, is that required??? Thank you! here is what the file had: mysql_query("INSERT INTO `people` SET `username` = '".$username."', `password` = '".$password."', `email` = '".$email."', `fullname` = '".$fullname."'");
  12. Hey everyone, I host a website video tutorial site for a classified software company. Here is my issue. I have made some mp4's that are over 200 mb in size. I am using a 3rd party delivery script that encrypts some folders, and delivers a download link via email to the person who purchased the video. For some reason, when using this software the video only downloads about 30's or 40's (mb) of the 200+mb file. However, when i use a direct link to the designated folder, it downloads completely! I have no clue why this is. Any suggestions? Or and hints on how I can keep others from sharing my download links? Thank you!!!
  13. Hey everyone, this topic is concerning the website Clinton4Sale On this website i have a simple orange header bar at the very top. It is supposed to stretch accross the top of the browser. All browsers (firefox, chrome, safari, and opera) display this correctly, however IE9 does not. Since most of you have that handy little tool that let's you see the html and css i didn't bother pasting the code. If someone has some free time and can tell me what i am missing, i would be very grateful. Thanks so much, Adam.
  14. Problem solved. Answer was in the html form. Apparently you can't create 2 forms and expect 1 submit button to submit all info in both forms
×
×
  • Create New...