Adobe Dreamweaver Forums



Last 10 THreads :         Add a full screen button to a video. (Last Post : kglad - Replies : 5 - Views : 9 )           »          Problems when uploading my website (Last Post : speculumcm - Replies : 4 - Views : 5 )           »          Dreamweaver CS3 Download (Last Post : DWFAQ.info - Replies : 5 - Views : 6 )           »          Pop up window using AS3 (Last Post : azilen - Replies : 0 - Views : 1 )           »          flash movie plays prematurely (Last Post : lyshamo - Replies : 5 - Views : 6 )           »          Variable for Loader Content (Last Post : kglad - Replies : 5 - Views : 6 )           »          Sick flash (Last Post : edmond_dantes - Replies : 0 - Views : 1 )           »          Flash 10 hangs Internet Explorer 7 on Vista? (Last Post : Aigurs - Replies : 94 - Views : 2261 )           »          Pop up window using AS3 (Last Post : azilen - Replies : 0 - Views : 1 )           »          Pop up window using AS3 (Last Post : azilen - Replies : 0 - Views : 1 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Macromedia Software > Cold Fusion > Getting Started
 
Tags:



Reply
  #1 (permalink)  
Old 11-20-2008, 08:14 PM
nouOU
 
Posts: n/a
Diggs:
Default Form input and eCommerce.. need help

I'm currently setting up a very small ecommerce website where I sell my service
(so it's one item, nothing too big). I've been using lynda.com and it's helped,
but this is my problem. On the order page, where the billing info is entered, I
need to have forms there because the customer needs to enter specifications, so
that upon entering billing information and the input fields, and hitting BUY or
w/e, all of the info they entered is sent to my database (or email, or wheever
I access it). Does anyone know if this is possible?



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-20-2008, 10:34 PM
Dan Bracuk
 
Posts: n/a
Diggs:
Default Re: Form input and eCommerce.. need help

It's possible.

What part are having difficulty with?
Reply With Quote
  #3 (permalink)  
Old 11-20-2008, 10:34 PM
nouOU
 
Posts: n/a
Diggs:
Default Re: Form input and eCommerce.. need help

[q]Originally posted by: Dan Bracuk
It's possible.

What part are having difficulty with?[/q]

The code. The billing info and the input fields would all be on the same page,
so when he hits the button to submit his order, I want all the info to be
dispatched properly. I've tried googling the code for this but can't seem to
find it. I'm a noob.


Reply With Quote


  #4 (permalink)  
Old 11-20-2008, 10:46 PM
Ian Skinner
 
Posts: n/a
Diggs:
Default Re: Form input and eCommerce.. need help

nouOU wrote:
> I'm a noob.
>
>


First thing to learn is that in technical discussions it is important to
describe what 'billing info' and 'dispatched properly' means.

The only thing I can guess is that you are displaying previously
collected information as well as form fields to collect more information
and you want all this information sent to the back end for processing on
submission.

In this case then you just need to learn about the <input
type="hidden"...> control and|or how to use session scope to store
information previously collected.

If this is not it, then you are unlikely to get more help without a
clearer description of the problem you are trying to solve, how you have
already tried to solve it, and why your solution is not successfully
solving the desired problem.
Reply With Quote
  #5 (permalink)  
Old 11-21-2008, 04:55 AM
BKBK
 
Posts: n/a
Diggs:
Default Re: Form input and eCommerce.. need help

NouOU wrote:
The code. The billing info and the input fields would all be on the same
page, so when he hits the button to submit his order, I want all the info to be
dispatched properly.


It's a wide area and yet you say so little about what you need. Do you know
how to code HTML forms and how to process the submitted result? That is all it
takes.

Store the billing information you already have as the value attribute in the
respective form fields. Use hidden fields for information you don't want to
show the user. In the following examples, I have assumed that you have adopted
the common practice of storing information about an order in a session.

<SELECT NAME="color">
<option value = "">Select color</option>
<OPTION VALUE="g">Green</option>
<OPTION VALUE="b">Blue</option>
<OPTION VALUE="y">Yellow</option>
<OPTION VALUE="o">Orange</option>
<OPTION VALUE="#session.colorCode#" SELECTED>#color#</option>
</SELECT>

<input type="Text" name="itemName" value="#session.item#">

<input type="hidden" name="orderCode" value="#session.code#">


Create new input fields to enable you to get new information from the user.
For example,

Your e-mail address: <input type="Text" name="email" size="30"
maxlength="100">






Reply With Quote
  #6 (permalink)  
Old 11-21-2008, 10:56 PM
dchard
 
Posts: n/a
Diggs:
Default Re: Form input and eCommerce.. need help

Billing Info Page:
<form action="end.cfm" method="post" name="done">
<cfoutput>
<input name="Name" type="text" id="Name">
<input name="Buy" type="submit" class="buttons" value="Buy">
</cfoutput>
</form>

End.cfm page:

<cfparam name="Form.Name" default="">
<cfquery name="name" datasource"datasource">
Insert Into Tablename (columnname)
Values ('#Name#')
</cfquery>

<cfmail from="w/e@domain.com" to="w/e@domain.com" subject="name" type="html">
#Name#
</cfmail>

---redirect to another page----
<script>
self.location="page.cfm;"
</script>



that's how I understand your question....hope it helps

Reply With Quote


Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 06:33 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Cheap Car Insurance - Compare Motor Insurance
Endsleigh Car Insurance Natwest Car Insurance
More Than Car Insurance Norwich Union Car Insurance
Prudential Car Insurance Zurich Car Insurance
Inactive Reminders By Mished.co.uk