Hello I would like to know if exist any way to create something like this in PHP
I need to insert in mysql an entire form, but I've to many field and I want a code to insert in the DB without to write in code each variable.
Thanks for you help
I need to insert in mysql an entire form, but I've to many field and I want a code to insert in the DB without to write in code each variable.
Thanks for you help
Code:
<% if request.Form("submit") = "submit" then
Dim rs, data_source
Set rs = Server.CreateObject("ADODB.Recordset")
rs.ActiveConnection = STRING
rs.source = "select * from form_ct"
response.Write (rs.source)
rs.open
rs.addNew
for each X in request.Form
if ucase(X) <> "SUBMIT" AND ucase(X) <> "UNIQUEID" and left(ucase(X),4) <> "DROP" and ucase(X) <> "OVERRIDE" then
rs(x) = request.form(x)
end if
next
rs.update
rs.close
set rs = nothing
end if
%>