Click to See Complete Forum and Search --> : Form Submit Error
Steven87
02-13-2004, 02:04 PM
hi guys/gals
need help is there a way that will allow me to submit a form to a file without me having to change the file manually?
I've noticed it on Frontpage but never seems to work
Thanks for all the support
Steven
Steven87
02-13-2004, 02:25 PM
is this possible or do i need a certain format like ASP
PhillMc
02-13-2004, 03:15 PM
I do it with ASP/ASPX, but I'm not saying that is the only way to do it. Most free based WPP's do not support ASP/ASPX but do support PERL, if that's a route you'd like to take. :)
Oh, and, AVOID FRONTPAGE! lol. Frontpage is more evil than using Tables for layout! ;)
Steven87
02-13-2004, 03:20 PM
where could i get an example of this as i only have frontpage and thats what i've been trying it with or would you be able to set it out for me so i can simply edit the bits i like.:D
Thanks whatever you answer
PhillMc
02-13-2004, 03:33 PM
ASP's are generally written in the Visual Basic Language. What I do is write a subroutine that handles the output. ASP's are SERVER SIDE, so unless you have access to the file system of the server (the server being your personal computer, or have access via FTP) my posting of code would be a bit of a waste. :) but here we go:
<%
FileOpen('FileNumber','Filename',Openmode.Output)
print('FileNumber',"Stuff to Write to File")
FileClose('FileNumber')
%>
'FileNumber' -- Files opened this way have to be referenced by number. If the number is in use, you will get an RTE.
'Filename' - Self Explanitory
OpenMode.Output -- Tells the server how to handle the file. If you will be sending the results of every form filled out to one file, use OpenMode.Append.
Hope that helps. ;)
Oh, and Check out HTMLGoodies for some good tutorials. You'll find a link at the top of this page.
Steven87
02-13-2004, 03:44 PM
so let me take it say for instance
Filename=jim.txt
and i want it to Overwrite
what would it be?
and whats the file number thing?
and thanks for htnlgoodies im looking now
PhillMc
02-13-2004, 03:49 PM
Originally posted by Steven87
and whats the file number thing?
The file you're working with is only referenced by name once, when you open it. The rest of the time it is referenced by a number you give it :)
Steven87
02-13-2004, 03:53 PM
i also have just got dreamweaver.
could u give me a step by step of how to do it?
do u use msn messenger at all?
its a bit hard to do this, im a total newbie
PhillMc
02-13-2004, 03:57 PM
Before we go any further, make sure your Server supports ASP/ASPX
Steven87
02-13-2004, 03:58 PM
yes it does.
http://www.1asphost.com/
using this.
cheers
PhillMc
02-13-2004, 04:04 PM
K :). Your server supports ASP 3.0, I've only been coding in ASPX (ASP.net) for the past year. The basics are probably the same, but just in case I will refer you here : http://www.htmlgoodies.com/ASP/ASP_p1.html
They'll do a better job at explaining the basics that I will. I'll just end up confusing you and we'll use a lot of space on this forum, lol. Good luck to you :)
Steven87
02-13-2004, 04:05 PM
ok then.
thanks!
Steven87
02-13-2004, 04:13 PM
just wondered if i could download the script as im short on time, if that is possible what category would it be under?
PhillMc
02-16-2004, 01:44 PM
*sigh
as I stated previously, I code in ASP.NET, which is primarily, Visual Basic. ASP 3.0 is primarily VB SCRIPT. The code that I would give you wouldn't work on your server.
'Sides, you will be much better off learning ASP for yourself. It doesn't take long to learn at all :)