62 Posted Topics
Re: Are you sure you shouldn't be using javascript for this, instead of PHP? | |
Re: Can you post the code for formvalidator.php? It seems as though the error may be there, from a glance. | |
Re: With your login code, md5() is the last thing you should do to the password. stripslashes() and mysql_real_escape_string() should come first. Try taking out running md5 on the password until you are querying for it. So... [CODE=php] $myusername=$_POST['user']; $mypassword=$_POST['pass']; $myusername = stripslashes($myusername); $cleanpwd = stripslashes($mypassword); $myusername = mysql_real_escape_string($myusername); $cleanpwd = … | |
Re: Try using cookies (but make sure it's secure!). When the user logs in, have this in your php's login script: [CODE=php] setcookie('username','$user');//Basic cookie called 'username' with a value of $username that expires when the browser is closed [/CODE] And when you have a page that needs to show user-specific data: … | |
Re: It would probably be easiest to zip or otherwise compress the files to be downloaded, and then have the visitor extract the files from the downloaded archive. Otherwise, the visitor will have to specify a download location for each mp3 file, which could be very annoying depending on how many … | |
Re: Not sure what the value's syntax looks like for your $buyeremail looks like, but make sure you are adding it in the correct syntax. [CODE=php] $headers .= 'From: Birthday Reminder <birthday@example.com>' . "\r\n"; [/CODE] That code was from this page: [url]http://php.net/manual/en/function.mail.php[/url] (Example #4) If the "From" section of your header … | |
Re: Specifically what part of this are you having trouble with? Just from skimming your code, things look a bit unorganized. If you're just populating a form with data, it's probably best to gather your data in PHP at the top and then use print() for your HTML with PHP variables … | |
So, not so much of a coding question but more of a development question. [B]Some background:[/B] I have finished writing a scheduling program (in part thanks to the folks at Daniweb) in PHP (using MySQL) for a small business that sells musical instruments, music lessons, and the like. The program … | |
Re: If I am understanding it right, you have two questions: -How to make sure the user has selected an option? -How to process that selection in your post.php file? For the first question, you have two options: 1. Validating that an option has been selected from your list with JavaScript … | |
Re: Try using [CODE]include 'dropdownlist.php'[/CODE] and printing a variable from that in your <td> tags. Example: dropdownlist.php: [CODE]$ddlist="**your dropdownlist html goes here**"[/CODE] Then index.php (or whatever): [CODE] include 'dropdownlist.php'; ... print("<td>$ddlist</td>"); [/CODE] | |
So I'm having a heck of a time getting this to work- JavaScript isn't exactly my specialty and I realize that's a big part of the issue, but I'm at my wit's end... I'm developing a PHP application that deals with scheduling music lessons. In my application, I have these … | |
I am calling a function in PHP that should return values from a database that I have set up. However, I'm getting a blank screen instead of what I'm asking for. If I comment the correct lines out and process it without the function, everything works perfectly. I've posted both … |
The End.