62 Posted Topics

Member Avatar for tcollins412

Are you sure you shouldn't be using javascript for this, instead of PHP?

Member Avatar for tcollins412
0
182
Member Avatar for Hakarune

Can you post the code for formvalidator.php? It seems as though the error may be there, from a glance.

Member Avatar for TySkby
0
229
Member Avatar for tcollins412

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

Member Avatar for rch1231
0
178
Member Avatar for tcollins412

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

Member Avatar for TySkby
0
145
Member Avatar for terrymold

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 …

Member Avatar for cooperspc
0
823
Member Avatar for oree

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 …

Member Avatar for TySkby
0
135
Member Avatar for pcchella

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 …

Member Avatar for TySkby
0
96
Member Avatar for TySkby

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 …

Member Avatar for TySkby
0
230
Member Avatar for astima

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 …

Member Avatar for TySkby
0
104
Member Avatar for sravi.pearl

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]

Member Avatar for TySkby
0
666
Member Avatar for TySkby

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 …

0
97
Member Avatar for TySkby

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 …

Member Avatar for TySkby
0
133

The End.