Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Auto submition to a forum
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

persh
Starting Member

1 Posts

Posted - 02 July 2003 :  00:23:34  Show Profile  Visit persh's Homepage
I am want to have users fill out a form (standard HTML form) and have it auto submit to a particular Forum specified for this, when they click on the submit button. Is this possible and if so how? Thanks for any suggestions or ideas in advance.

rejordan
Starting Member

18 Posts

Posted - 02 July 2003 :  00:51:07  Show Profile  Visit rejordan's Homepage
Yup, it's possible... Here's a little piece of code that I use to update a calendar from a form submission:

sub InsertRideEntry
strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("yourdbgoeshere.mdb")

set my_Conn = Server.CreateObject("ADODB.Connection")

my_Conn.Open strConnString

strDate = "'" & Request.Form("RideDate") & "'"
strTime = "'" & Request.Form("RideTime") & "'"
strTitle = "'" & Request.Form("Location") & "'"
strDistance = Request.Form("Distance")
strEvent = "'" & Replace(Request.Form("Ride Description"),"'","'''") & "'"
strCategory = "'" & Request.Form("Category") & "'"

strSQL = "Insert into EVENT (RideDate,RideTime,Title,Distance,Event,Category) Values (" & strDate & " ," & strTime& " ," & strTitle & " ," & strDistance & " ," & strEvent & " ," & strCategory & ")"
my_Conn.execute(strSQL)
my_Conn.Close
End Sub


Put something like that in a seperate .asp document then call it in the .html (or .asp) document that contains the form, something like this:


<form method="POST" action="insertride.asp" ID="Form1">


All you need to do is select the correct table from your forum db and insert the fields you want. You could even update exsisting records if you really wanted to.

I hope this helps...

Edited by - rejordan on 02 July 2003 00:52:10
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.24 seconds. Powered By: Snitz Forums 2000 Version 3.4.07