Jump to content

zain123

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

zain123's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I have the following code: <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Form</title> <script language="javascript"> function replaceText() { document.form1.textarea1.value = "DMC "; } </script> </head> <body> <form id="form1" name="form1" method="post" action=""> <textarea name="textarea1" cols="90" rows="5" id="textarea1" style="width:380px;height:200px;">3/3/2008 His really happy withe the current business is going well. Therefore unlikely to look this year.</textarea> <input type="submit" name="button" id="button" value="Decision Maker Conversion" onclick="replaceText()"/> </form> </body> </html> When the submit button is clicked, the text area updates with DMC for only a second and then it goes back to the original text.. not sure whats happening? Anyone have any idea? thanks in advance...
  2. thanks everyone that helped a lot ..actually not coming from Java but they are being sent from Flash
  3. thanks for that dark water ...basically I'm gonna get about 24 name/email pairs POSTED to the php file. example $name0= $POST["name0"]; $name0= $POST["name0"]; $name1= $POST["name1"]; $name1= $POST["name1"]; $name2= $POST["name2"]; $name2= $POST["name2"]; //and so on for 24 pairs How would I actually put all these values into the array to start with... Also just for learning purposes if i wasnt to use an array ,how would i use a loop to insert it into the database: I tried something like: <?php $i=0; while($i<=24) { $insertSQL = "INSERT INTO players(name, email, date) VALUES ('$name+$i', '$email+$i', NOW())"; $rs = mysql_query($insertSQL,$conn); } ?> but the above doesnt seem to work.. Thanks for your help. appreciate it
  4. Hi my code is as follows and it works fine..but how would i put the insert statements in a loop? Thanks in advance: $name0 = "hello"; $email0 = "yellow@yellow.com"; $name1 = "jello"; $email1 = "jello@jelo.com"; $insertSQL = "INSERT INTO players(name, email, date) VALUES ('$name0', '$email0', NOW())"; $rs = mysql_query($insertSQL,$conn); $insertSQL = "INSERT INTO players(name, email, date) VALUES ('$name1', '$email1', NOW())"; $rs = mysql_query($insertSQL,$conn);
×
×
  • 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.