Jump to content

env-justin

Members
  • Posts

    11
  • Joined

  • Last visited

    Never

About env-justin

  • Birthday 08/10/1987

Profile Information

  • Gender
    Male
  • Location
    Richmond, VA

env-justin's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. As far as that redirect goes. Why don't you do an .htaccess rewrite. Something like this: RewriteEngine on RewriteRule ^index\.php$ week.php Just create an .htaccess file in the events folder and then add them two lines above. I'm still new to rewrites but I believe that would work.
  2. Quick question. Did you set up the mysql database?
  3. I think you forgot to resend your form variables to the check.php page. You are just checking form_set then redirecting if it is true. So no $_POST variables are even being sent to check.php. I could be way off. I didn't read all of your code.
  4. did you try what i said to do the one last post. just add them 4 line at the top
  5. Have you tried using $_GET['nom_expediteur'] register globals is probaly turned off at the start of your php script change all your variables coming from flash like so: $nom_expediteur = $_GET['nom_expediteur']; <? /* **************************************************************************** *** $msg se rapporte aux variables placées dans le corps du message *** **************************************************************************** */ $msg = "E-mail from site XXX \n\n"; /* ******************************************************************************************** *** La chaîne Nom Expediteur est écrite dans le corps du message suivi de la variable $nom_expediteur. Idem pour les autres valeurs. *** ******************************************************************************************** */ $nom_expediteur = $_GET['nom_expediteur']; $email_expediteur = $_GET['email_expediteur']; $sujet = $_GET['sujet']; $message = $_GET['message']; $msg .= "From sender: $nom_expediteur\n"; $msg .= "E-mail: $email_expediteur\n"; $msg .= "Subject: $sujet\n\n"; $msg .= "Message: $message\n\n"; /* ************************************************************* *** \n retourne à la ligne - \n\n saute une ligne *** ************************************************************* */ /* **************************************************** *** N'oubliez pas de mettre votre adresse email *** **************************************************** */ $to = "info@mysite.it"; $subject = "$sujet"; /* ***************************************************************** *** Ecrit "E-mail depuis mon site" dans le champs "from"*** ***************************************************************** */ $mailheaders = "E-mail from site XXX \n"; /* ***************************************************************** *** Ecrit l'e-mail de l'expéditeurdans le champs "Reply-To" *** ***************************************************************** */ $mailheaders .= "Reply-To: $email_expediteur\n\n"; /* ****************************************** *** Fonction Mail - exécute le script *** ****************************************** */ mail($to, $subject, $msg, $mailheaders); ?>
  6. the loadVariables function in flash i believe is used to get variables from an external file. it seems you are trying to do just the opposite. correct? if so you can use the LoadVars.send to send your form variables from you action script to your php file. http://www.actionscript.org/resources/articles/46/1/LoadVariables-and-LoadVars-Objects/Page1.html sorry if i misunderstood anything im not really a flash guy and the foreign language makes it a bit harder to understand the code fully.
  7. just post the actual script from the action script file
  8. can you post the action scripting from the flash file?
  9. wow I could of swore i had that there in the beginning. thanks.
  10. Im retrieving this error. Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\wamp\www\cvc\classLibrary\UserLogin.php on line 14 When I place the while loop into the runQuery() method it works as planned so I know it is connecting to the database properly. Any suggestions? Thanks! <?php class mysqlConnect { private $host; private $conn_user; private $conn_pass; private $database; function connect() { require_once('************'); $connection = mysql_connect($this->host, $this->conn_user, $this->conn_pass); $dbSelect = mysql_select_db("cvc", $connection); if (!$connection) { die('Could not connect: ' . mysql_error()); } if (!$dbSelect) { die ('Can\'t use selected database : ' . mysql_error()); } } function runQuery($query) { $result = mysql_query($query); } } ?> <?php class userLogin { function __construct($username, $password) { require('classLibrary/MysqlConnect.php'); $mysqlConnect = new mysqlConnect; $conn = $mysqlConnect->connect(); $result = $mysqlConnect->runQuery("SELECT username, password, level FROM employees WHERE username='$username'"); while ($row = mysql_fetch_array($result)) { echo $row[0] . $row[1]; } $mysqlConnect->close(); } } ?>
×
×
  • 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.