PDA

View Full Version : Javascript assistance desperately needed



Nicola
Oct 3rd, 2001, 09:47 AM
I am a web designer, stuck with all the nightmares of a web developer at the moment and it really isn't my forte!

I will explain my problem, and if you feel you can offer me any help at all it will be greatfully recieved.
We have downloaded Zaygo cgi for domain checking. The cgi files are on our mail server and we direct domain orders to the secure server where any customer can place thier order(with credit card details).
on the mailer the cgi files are controled with an admin.cgi.
The checkout on the secure server is not connected to the cgi files. It is a remote asp page. I need to create some javascript which will remember the domain names ordered and the total prices of the order (passing them from a page on one server to one on another). I am sure this is probally something really simple, but I need help, I am an artist!!!!!
:eek:

Tommy
Oct 3rd, 2001, 10:08 AM
You can set the values and post them to another page.

When you have the values on the second page, set them as inout type="hidden" and post again.

Then when you get to the final page, pick the values up again.

An alternative is to set cookies.

P.S. Can you edit your sig file pls? We only allow 4 lines :)

Nicola
Oct 3rd, 2001, 10:25 AM
Thanks Tommy.
I think the advice you gave me is helpful, but can you explain it in begginners terms please, I am new to all this.
Do you have any script examples?

Tommy
Oct 3rd, 2001, 10:43 AM
1st Page:

<form action="page2.asp" method="post">
<input type="hidden" name="name" value="">
</form>

This will set the variables and post to next page
___________________

2nd Page:

Use ASP to get the values

<%name=request.form("name")%>

Further down the page set the value of name using ASP, in a hidden field to post to the next page. Basically call the value from above to the form.

<input type="hidden" name="name" value="<%=name%>">


And so on and so on. Using this method you could go on forever.

:)