|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
form to mysql db currently using cgi
I am currently using ennyform a cgi form mail script that allows me to mail the results based on form choice. ie choose area code 111 and it will be mailed to email address x, choose area code 222 and it will mail to address y and so on. It also allows multiple addresses. It will also add the time and date and save the info to a flat txt file. I don't want to lose these functions. I understand that to get the results of the form over to a mysql db I need to use php. I was told that i could implement php a script to do this and still use my cgi form mailer. I was told to look into using includes. any insight on doing this. Is there an obviously correct way of getting the results I want. I went to hotscripts and could find no script either cgi or php that does all the functions I want. Is it logical to have two scripts doing differnt functions on the same form? I really don't want to start from scratch.
|
|
#2
|
|||
|
|||
|
RE: form to mysql db currently using cgi
I think it would be helpfull if you specified the language you have written your cgi script in.
Or even better, post the code If written in bash or sh, you would have big problems in escaping your code but you could do something like this echo "insert into `test` (`field1`,`field2`) values('$a','$b') ;quit"|mysql test but if some joker posts in $a " your script will crash |
|
#3
|
|||
|
|||
|
RE: form to mysql db currently using cgi
I don't know how it was written. It is a free script. I just configured it. No coding. It is called ennyform. I am looking more at the overall picture. Is it correct to use inserts and run multiple scripts from one form to get more funtions. There are other freescripts that will insert into mysql. I am not even sure how to use inserts it was just one thing someone said so I am looking for info. Someone else said start from scratch and create one script. Obviously I won't be writting a script but I need to know the correct way to go before paying someone to do it.
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Database Help > form to mysql db currently using cgi |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|