Jump to content

ice1000

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

ice1000's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I thought of that as I did more looking up into sessions. I'm not sure how to do that programatically but I have since closed Firefox & reopened, several times. Still doesn't work.
  2. I'm having trouble using Freetag. Has anyone used this application? What I'm trying to do is add a tag to the freetag table using the freetag functions. I have gotten this two work only twice. After it worked, I re-ran the script and nothing happened. I made no changes to the code, I just reran it, but no dice. Is there some thing wrong with my code? Thanks [code] <?php session_start(); $user_id = $_SESSION['user_id']; require_once('config.inc.php'); require_once('freetag.class.php'); ?> <html> <head> <title>Test tags</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <div class="formbox"> <div class="title">Be the first to add some tags!</div> <form name="addTags" method="post"> <input type="hidden" name="id" value="<? $id ?>" /> <input type="text" name="tags" maxlength="40" /> <input type="submit" name="Add" value="Add" /> </form> </div> <?php $freetag_options = array ( 'db_user' => 'admin', 'db_pass' => 'pass', 'db_host' => 'localhost', 'db_name' => 'muse' ); print $_POST['tags']; $freetag = new freetag($freetag_options); if (isset($_POST['tags']) && trim($_POST['tags']) != "") { #$freetag->tag_object($user_id, $_POST['id'], $_POST['tags']); # per the tutorial $freetag->tag_object( $user_id, 1, 'test'); #this worked once } ?> </body> </html> [/code]
  3. That was it. I was double clicking the form instead of typing in the path. Can someone explain why double clickng does not work? Thanks for the tip on turning off register_globals.
  4. I'm using XAMPP for Windows. I'm working through a book 'PHP and MySQL for Dynamic Web Sites'. Chapter 2 is about handling forms. I created the followng form: [code]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"         "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <title>HTML Form</title> </head> <body> <!-- Script 2.1 - form.html --> <form action="handle_form.php" method="post"> <fieldset><legend>Enter your information in the form below:</legend> <p align="left"><b>Name:</b> <input type="text" name="name" size="20" maxlength="40" /></p> <p align="left"><b>Email Address:</b> <input type="text" name="email" size="40" maxlength="60" /> </p> <p align="left"><b>Gender:</b> <input type="radio" name="gender" value="M" /> Male <input type="radio" name="gender" value="F" /> Female</p> <p align="left"><b>Age:</b> <select name="age"> <option value="0-30">Under 30</option> <option value="30-60">Betweeen 30 and 60</option> <option value="60+">Over 60</option> </select></p> <p align="left"><b>Comments:</b> <textarea name="comments" rows="3" cols="50"></textarea></p> </fieldset> <div align="center"><input type="submit" name="submit" value="Submit Information" /></div> </form><!-- End of Form --> </body> </html>[/code] and the handle_form.php is: [code]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"         "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <title>Form Feedback</title> </head> <body> <?php echo "Thank  you, <b>$name</b> for the following comments:<br /><tt>$comments</tt><p>We will reply to you at <i>$email</i>.</p>"; ?> </body> </html>[/code] I don't get the string value with the variable names. I get this: [quote]$name for the following comments: $comments We will reply to you at $email. "; ?>[/quote] My register_globals are on. What am I missing?
  5. ok, [i]seems[/i]  to work now. I had a bad setting in my XAMPP. Let's see if I can figure this out! Thanks for the help.
  6. I'm trying to just test out the Get ID3 function form Sourceforge.[url=http://getid3.sourceforge.net/]http://getid3.sourceforge.net/[/url] The readme file says: [quote] Usage ===== require_once('/path/getid3.php'); $getID3 = new getID3; $fileinfo = $getID3->analyze($filename); See structure.txt for the returned data structure. *>  For an example of a complete directory-browsing,      <* *>  file-scanning implementation of getID3(), please run  <* *>  /demos/demo.browse.php                                <* See /demos/demo.basic.php for a very basic use of getID3() with no fancy output, just scanning one file.[/quote] I can't get anything to work. I tried this: [code]<HTML> <BODY><? include ('C:\Program Files\xampp\htdocs\getid3\demos\demo.basic.php'); $filename = 'Adiemus-Adiemus.mp3'; require_once('getid3.php'); $getID3 = new getID3; $fileinfo = $getID3->analyze($filename);?> </BODY> </HTML>[/code] and I get analyze($filename);?> in the browser. What am I doing wrong?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.