Click to See Complete Forum and Search --> : e-commerce
2030671
05-19-2003, 10:22 AM
I already have a website with pc-products. I have to implement this. Some older products are being sold online. You can place bids (People just email their bid). I have to get this : people can fill in a value in a textbox, when pushed a button this value automatically gets emailed to us and automatically placed in another textbox on the page which content you can't alter.
Is this possible or should i do all this manually?
Thanx
Jelle
Ribeyed
05-19-2003, 01:37 PM
hi,
this is all possible, but can you give some more information about which stage you are at?
do you have a database and a database structure?
have you started to do any of the code for it, if so can you post some?
2030671
05-20-2003, 03:40 AM
Hi,
first of all thanx for replying.
They aren't really fond about using a database here so i don't think that would be a good choice. Is there another way to do it.
Like this :
The textfield which shows the value that was sent, doesn't get the value from a database. When u send the value it gets sent to the email-address and to the empty textfield. Without using to a textfield.
Ribeyed
05-20-2003, 03:50 AM
hi,
ouch! that can be a bit tricky. Retrieving the value from a text box is not a problem, automatically emailing the value to an email address again is not a problem. The updating the value on the page with the new value submitted is the problem, without a database to store the new value you would have to be looking at storing the value in a text file or making use of application variables at a lower level.
The old/current/new value needs to be stored somewhere thats what makes it dynamic. ASP pages can't store values itself so you have 3 choices; database, text file and application/session variables.
2030671
05-20-2003, 07:07 AM
When you retrieve the value from the textbox u have to put it in a variable to email it right? (strvalue or something) Can't you do something like this : textboxname = "strvalue". Like programming in VB or something like that. Just fill up the textbox with the value from a variable.
2030671
05-20-2003, 08:08 AM
Dave , u said without a separate textfile but the page from the link uses a textfile or am i wrong
Ok what i can make from all this :
- the user fills in a value
- the value gets emailed
- the value gets written away in a textfile
- a textbox on the page gets its content from that textfile
- when another user puts in a value it should check if that value is bigger than the last one if so the textfile content gets deleted and the new value is written away in the textfile
- the textbox on the page gets its content from that textfile
Can this work?
Ribeyed
05-20-2003, 01:54 PM
hi,
yes that would work fine.