Forum Moderators: open

Message Too Old, No Replies

What am I doing wrong besides using FrontPage?

I have tried everything but cannot get the forms to forward the information

         

pendeha

12:26 am on Sep 3, 2002 (gmt 0)


I want to post a Purchase Order that will calculate what the customer
is buying.
The company I work for usually deals with Net 30, so PayPal & the online services are really not necessary.

I can get the calculations to work, but when it comes time for the customer to submit the information, it comes up empty when I get the form email.

The first url has an excel spreadsheet component which I have been unable to locate just how to retrieve the information after input.

The second url, I inserted a JavaScript form-which works great, but again, I am not able to retrieve the information after input.

HELP!

http://www.apm4parts.com/PO.htm

http://www.apm4parts.com/scripted_order_form.htm

txbakers

4:23 pm on Sep 3, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



First, welcome to Webmaster World. A couple items of protocol which will no doubt come up soon: 1) we don't usually like to post URLs here, unless they refer to articles or sites which would have interest to about 95% of the membership. 2) We also don't like to see "help me with my site" posts, instead, generic "help with a certain topic" posts are much preferred.

On to your topic. The real problem is that you are using Front Page with all it's weird coding and bots.

For instance, this is taken from your Order Form page:
<HEAD>
</TABLE></FORM>
<TITLE>Scripted Order Form</TITLE>

Those close table and close form tags are floating up there, wreaking havoc in browsers and functionality. And there is no </HEAD> tag to be found. Those types of errors will cost dearly in usability. In some browsers it just won't work.

If all you want is a way to get the form information to you through e-mail, there are many easier solutions available, all of which involve some type of server side scripting. You posted to the Microsoft board. Do you know if your web host is using IIS as the webserver? If so, you'll want to investigate ASP and something called ASPmail or CDONTS. This is the most effective way to get form contents mailed to you.

Check back after you looked into those topics above, and we can help you write a much cleaner page which will work for you.

Good luck!

corby0000

6:27 am on Sep 5, 2002 (gmt 0)

10+ Year Member



Txbakers is right; Front Page has made a mess. I would try to code the pages yourself, what you're trying to do isn't very difficult and debugging the pages will be easier having written the code.

First you need to find out what's running on the server. My guess would be NT 4 or 5 with IIS at least IIS 4 but I would ask your system administrator anyway. It sounds like you are attempting to send the information submitted in a form via email. ASP, JSP, and PHP all support this functionality.

I would change the action attribute of the form tag to point to another process page. ASP and JSP will pull the information submitted to the page from the Request object. PHP will implicitly make the information available as variables. All you need to do is to format the body of the email with the posted information and send the order.

Here's a good ASP Example, just ignore the mail component. You will probably want to use the CDOs framework for simplicity:

[flicks.com ]

More on Collaboration Data Objects:

[aspalliance.com ]

Here's an example in form processing in PHP:

[phpbuilder.com ]

Here's the mail for PHP:

[phpbuilder.com ]

JSP is a little more complicated but if your up for it, here's an example of the form processing:

[developer.novell.com ]

I couldn't find an email example in JSP that didn't have you building a tag library but here's an example anyway:

[jspinsider.com ]

Hope this helps.