codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Validate form before submiting  Archive Import (Chris) at 16:22 on Saturday, August 23, 2003
 

I have created a form and it is sending the results to me via email then redirecting the user to a thank you page.... I want to change the process around and am running into troubles.

I want to have the user enter their info and products desired, then when they hit submit, it takes them to a page that shows them the info they inputed so they can print it out for their records. Once they verify the info is correct, they hit submit and THEN I receive the email with the correct info. Otherwise, they can go back and change the info.

Any suggestions??

  Re: Validate form before submiting  Troy Wolf at 17:55 on Monday, August 25, 2003
 

If you have the programming knowledge to create a server page that processes the form and emails the results to you, then you wouldn`t be asking this question. Therefore, I have to assume that you are currently simply submitting your form to a third-party form-emailer page. (Perhaps a script that came with your hosting account or maybe a service offered by another website?)

To achieve your goal, you will have to do some basic server-side scripting. The biggest three scripting environments are probably ASP (default for IIS websites), PHP, or Perl CGI (The latter two are common on Linux hosting, although there are versions of PHP and Perl scripting for Windows.)

So tell us what your environment allows, and somebody will hopefully reply back with specific code examples for your environment.
Troy Wolf: site expert
SnippetEdit Website Editor


  Re: Validate form before submiting  Troy Wolf at 17:56 on Monday, August 25, 2003
 

Or perhaps you built your form in FrontPage and are using the FrontPage Server Extensions to process and email the form? Let us know.
Troy Wolf: site expert
SnippetEdit Website Editor


  Re: Validate form before submiting  Archive Import (Chris.) at 17:44 on Tuesday, August 26, 2003
 

Actually I am building the page with Dreamweaver doing the programing with html and java I picked up along the way. The form I am using the popular formail.cgi from that Matt guy. I have built the form and it works but I want more. It simply emails me the results and sends my customers to a "order complete" page I created. I want the info to be sent to another page so the customer can verify, then submit. If they have to make changes, they can hit something like "edit" to go back and make changes.

I have created something similar to this already. The user inputs the info and a popup notification box appears with the info inputed. This is nice, but not as clean as a webpage would be.

Thanks

  Re: Validate form before submiting  Archive Import (Chris) at 17:45 on Tuesday, August 26, 2003
 

Actually, take a look at the source code here.

http://www.flowerstobeads.com/pages/order/

  Re: Validate form before submiting  Troy Wolf at 13:15 on Wednesday, August 27, 2003
 

I assume you mean javascript -- not java. It is a common misconception, but java and javascript are not related. Javascript is not a subset or scripting version of java. They were developed by completely independant sources and just happen to both contain "java" in their names. Conversely, VBScript IS a subset of Visual Basic.

Since you are most likely on a UNIX/LINUX platform (I`m assuming since you are using cgi scripts), probably the quickest way to get where you want is to write a PERL CGI script or if your server allows, use PHP. (PHP is similar to ASP). Both of these will require you to learn a bit of programming, but if you want to continue down the path of dynamic-data driven websites--you gotta take this step.

Unfortunately, I`m not qualified to assist with PERL or PHP coding, but I`m sure there are people here who are----anybody help Chris out?
Troy Wolf: site expert
SnippetEdit Website Editor


  Re: Validate form before submiting  Troy Wolf at 01:42 on Tuesday, September 09, 2003
 

Chris, I'm sorry nobody stepped up to help you out. Are you still needing some help with this?

If so, I know just enough PHP to help you do this, but like I said, I prefer to answer the questions where my skills qualify me as somewhat of an authority on the subject. I'm a PHP newbie, but I can help you with this.

I'll be ticked if I post some PHP code then get flamed for my crappy code by somebody who knows PHP really well! You should have helped Chris out to start with!
Troy Wolf: site expert
SnippetEdit Website Editor


  Re: Validate form before submiting  codetoad007 at 21:40 on Friday, March 19, 2004
 

Hey there.....
We have not met yet, but I am so needing some advice. I am not only a network engineer, but I am a web designer with much on my belt. Only, I have been trying to decide on a code that best fits this small website where a form is generated to respond back saying thank you(here is what I sent) and to send it to my e-mail. I have already accomplished this....only I am going through a seperate website to confirm the thank you using their cgi-bin file--- and I think they use .pl which i believe is a Perl script file. I am not too familiar with this language---If you do not mind, how do you accomplish your's????








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  do static member are inherited
•  Re: Help with Using DataReader with StoredProcedure
•  Perl Script Output (w3c validator)
•  Re: HashMap question
•  focus management?
•  Looping Issue...Please help!
•  regarding hibernate
•  working with plugins
•  Checkbox Validation help.


Recent Articles
What is a pointer in C?
Multiple submit buttons with form validation
Understanding Hibernate ORM for Java/J2EE
HTTP screen-scraping and caching
a javascript calculator
A simple way to JTable
Java Native Interface (JNI)
Parsing Dynamic Layouts
MagicGrid
Caching With ASP.Net


© Copyright codetoad.com 2001-2006