Jump to content

sethupathy

Members
  • Posts

    35
  • Joined

  • Last visited

    Never

Everything posted by sethupathy

  1. Corbin you rock thanks a bunch mate works great problem solved
  2. Great guys thanks a bunch i was able to use my own code with little mod , but yours look much better problem solved
  3. hi guys here is my new problem because i have french users that will be entering data to my web form and there is questions with answers that require that enter data in money value 245.45 or like some users in french they use a 245,45 (comma) i am having problem with how mysql handles the money value when there is a comma the data is after the comma is missing i am using decimal 7,2 in mysql. is there a way that the semicolon becomes a . when the data is entered by the user? or is there a way around that pls any input much appreciated
  4. I have created a web form where i am having some problems with fire fox , i created the form using dreamweaver there are couple of questions where i have two collums in the same row firstname and last name that when i run it in firefox the mouse pointer redirect me to the previous field but with TAB i able to go to the second field, it does not happen in IE and its also happening to some radio buttons what could be the cause? pls help
  5. great thank you very much guys problem solved
  6. i did what you said and i added some more like ' and - " and it does not work /^[a-zA-ZéÉàÀ'-" ]+$/ is there another way to add ' - "
  7. this is my code and it wont accept french caracter like é à l' can someone help pls it keeps poping to enter again function isAlphabet(elem, helperMsg){ var alphaExp = /^[a-zA-Z ]+$/; if(elem.value.match(alphaExp)){ return true; }else{ alert(helperMsg); elem.focus(); return false;
  8. this is my code and it wont accept french caracter like é à l' can someone help pls function isAlphabet(elem, helperMsg){ var alphaExp = /^[a-zA-Z ]+$/; if(elem.value.match(alphaExp)){ return true; }else{ alert(helperMsg); elem.focus(); return false;
  9. thanks for the link. very helpful. Right now i have a fully working web form that i want to validate some of the radio buttons (not all of them) and i do not want to validate some fields so how do i check for some question if the radio buttons has been cheked or not is there a way to validate only some questions at different location in the web form how do i call the action thanks i dont really know how to put in words , it sound a bit silly but help needed thanks
  10. i want to be able to get numbers from 1-4 only nothing else how do i make this work with this code it never seems to work if (sondage_cpe.nombreins.value.length < 1 ) { alert("S.V.P. rentrez le nombre d'installation.") sondage_cpe.nombreins.focus() return false }
  11. Hi guys i have a really long web form to make (its made) i am having problem with validation. what i would like to do is to put an * asterix at the end on the line of all unanswered questions can someone help i have seen this on other web form someone help thanks
  12. Hi guys i have a really long web form to make (its made) i am having problem with validation. what i would like to do is to put an * asterix at the end on the line of all unanswered questions can someone help i have seen this on other web form someone help thanks
  13. I want to be able to rediredt my cleint to a web page instead of sending him a message how do i input a link into this if($error==""){ echo "Thank you for taking time to answer my web form.";
  14. hi guys i want to able to make a question with a rating, i want the user to rate from 1 to 3 for each choise but if he as selected 1 i dont want him to be able to select 1 again for the other 2 question ? using radio button Pls help choice 1 1 2 3 choise 2 1 2 3 choise 3 1 2 3
  15. hi guys i want to able to make a question with a rating, i want the user to rate from 1 to 3 for each choise but if he as selected 1 i dont want him to be able to select 1 again for the other 2 question ? using radio button Pls help choice 1 1 2 3 choise 2 1 2 3 choise 3 1 2 3
  16. i have completed my web form,connection works fine (thanks guys ) i am now in validation , but i have a question, when i click send and i return to my web form (back) all data is gone from the from how do i make the data editable until the browser is closed? by using cookies? i am not familiar with that is there other way to make a web form data stored until a session ends. i do not use any logon to id the user i just want the form saved thank you for the help
  17. in a form i ask the client if they want to use form for type of comapnie 1 or 2 i have been using php to redirect but i am having problem using header can someone tell me how would i do this using java <?php $choice = $_POST['type']; //Use addslashes( ); around the $_POST var to increase security if( $choice == "1" ){ header( 'location: /company1.html' ); exit; } if( $choice == "2" ){ header( 'location: /company2.html' ); exit; } ?> PLS HELP
  18. i was able to connect from home yesterday but today at work (first time i try) it says unable to connect is it because i am on a domain here at work or the server here does not allaow me pls help
  19. in the command $dbServer='localhost' if i want to connect externally what is my dbserver name? is it my ip adress ? i cant get it to work $dbServer='xx.xx.xx.xx:3306' and it gave me could no connect is there something else i have to tell ? <?php // hostname or ip of server (for local testing, localhost should work) $dbServer='xx.xx.xxx.xx:3306'; // username and password to log onto db server $dbUser='xxxxxxx'; $dbPass='xxxxxxx'; // name of database $dbName='sondagetel'; $link = mysql_connect("$dbServer", "$dbUser", "$dbPass") or die("Could not connect"); print "Connected successfully<br>"; mysql_select_db("$dbName") or die("Could not select database"); print "Database selected successfully<br>"; // close connection mysql_close($link); ?> pls help
  20. i am a newbe so bear with me is there anything i have to do to mysql to accept external connection to the db Localhost connection : $connection=mysql_connect("localhost","user", "pass") or die("Unable to connect!"); /* change this! */ mysql_select_db("sondagetel") or die("Unable to select database!"); for external do i have to replace the locallost by my ip adress? is there a change i have to make to the config? pls help
  21. hi guys i have made a basic postal code script that i would like to upgrade but cant get it to work here is my basic script: if (sondage_regroupement.codepostal.value.length == 0) { alert("S.V.P. rentrez votre code postal.") sondage_regroupement.codepostal.focus() return false } i need the postal code to validate this entry : /^[A-Z][0-9][A-Z](|-)[0-9][A-Z][0-9]$/ help pls
  22. I am very new to apache and php,mysql , just wanted to know I have been learning a lot using locolhost , lots of test making forms but now i need to create a form which will connect to my mysql for connection how would i tell the php page to connect to my mysql db i cant seem to get it right pls help
  23. sorry guys for wasting bandwith Problem SOLVED thanks for the LINK you rock
  24. i have a logon page where i make the client select the type of form to fill out but i get an eror everytime i run it pls help error: Warning: Cannot modify header information - headers already sent by script: <title>Type de membre</title> <?php $choice = $_POST['type']; //Use addslashes( ); around the $_POST var to increase security if( $choice == "1" ){ header( 'location: /regroupement.php' ); exit; } if( $choice == "2" ){ header( 'location: /cpe.php' ); exit; } ?> <form action="<?php $_SERVER['PHP_SELF'] ?>" method="post" name="type" id="type"> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="MenuMaqSec"><p><span class="smallText"><font color="red"><b>Attention!</b></font> Veuillez remplir un sondage par Installation </span><br /> </p> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="inputRequirement">* L'astérisque après un champ indique que l'information doit être obligatoirement saisie.<br /> <br /></td> </tr> <tr> <td class="MenuMaqSec"><strong>Type de membres</strong></td> </tr> </table> <table border="0" cellspacing="2" cellpadding="2"> <tr> <td width="514" class="MenuMaqSec2">Type : </td> <td width="203" class="MenuMaqSec"><label></label> <label> <select name="type" id="type"> <option selected>--Choisir--</option> <option value="1">Regroupement</option> <option value="2">CPE</option> </select> <span class="inputRequirement">*</span></label></td> </tr> <!-- <input type="hidden" name="province" id="province" value="76" maxlength="32"> --> </table> <br /> <table width="768" border="0" cellspacing="0" cellpadding="0" bgcolor="b7d9e9"> <tr> <td height="43" valign="middle"><div align="center"> <label> <input type="submit" name="submit" id="submit" value="submit"> </label> </div></td> </tr> </table> <br /> <p> </p></td> </tr> </table> </form> </body> </html>
  25. Another problem Solved Thanks a bunch dude i am starting to get this bit by bit.
×
×
  • 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.