|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
before i tell you about my problem i'd like to say that i am a totaly newby and i am sorry if this is the wrong forum but i did not know where else to post it. If its the wrong forum please move it. You guys need to make a forum for newby's like me
hey is anyone using 2checkout.com for their online store to make payments? i need some help. i wanna make a html form and get their info sent to an e-mail and at the same time redirect them to 2checkout.com to pay. Here is a problem , in one of the forms if they select "additional position" they have to pay more on top of the actual fee. the problem is i can only send them to 1 2ckeckout.com page and i dont know if they select any additional positions to send them to a diff 2ckeckout.com page. i know this all sounds very confusing but i hpe you understand it once ytou visit the website. www.typefilms.com and then go to crews and then sign up. i hope someone can help me with this problem. i am not an expert and just got started with this whole website stuff. if you could solve my problem or lead me to the right direction it will be very appreciated. thanks in advance. ANOTHER PROBLEM: email/script confirmation script you know how you have to type in your e-mail/password twice and it has to be the exact same thing or the form will not be processed? well i am looking for that script if anyone could help me i would be very greatful. thanks PS. i already looked through all of the big free script websites. like hot scripts. bye and thanks again Farzin |
|
#2
|
|||
|
|||
|
Sorry, but I don't wan't to sign up, but if you can tell us what kind of languages this is programmed in (asp, php etc.) I will be a little bit easier, both how to send an email and serverside validation.
Since I don't know which serverlanguage this is, here is a validation script that check's if the password and the re-entered password is the same. It's a javascript, which means that if somebody have turned off javascript, it won't work. Code:
<script type="text/javascript">
<!-- Begin
function checkPw(form) {
Password = form.Password.value;
Password2 = form.Password2.value;
if (Password != Password2) {
alert ("\nYour didn't write the same password in both fields. Please re-enter your password.")
return false;
}
else return true;
// End -->
}</script>
|
|
#3
|
|||
|
|||
|
thank you for your reply. i will try that validation script. the script i use to process the form is in php and can be downloaded here and tehre is also a dodumentation about it right on this website http://www.dtheatre.com/scripts/ .
i dont know if you can help me with my first problem but i know its hard to understand what i exactly mean but if you guys would like to sign up just to test it or anything just let me know here so i know it was just a test. its the crew sign up page i am having the problem with. What we do is we charge people who sign up as a crew member 60 bucks. if they would like to have additional positions it'll cost them 10 bucks per position. the problem is here. the way i have ti right now is this, once they submit it it'll take them to a page that says payment www.typefilms.com/crews-payment. there they have to press a button that leads them to 2checkout.com and to our product where they can buy it with their credit card. now i want t eliminate the payment page so its much easier and they will be redirected to the 2checkout.com directly but i cant do that because i dont know if they will pick any additional positions because then it'll cost more. i hope i explained everything correctly. is there a script or could someone write me one where it changes the redirect value of the form if an additional position is filled out? and to a third value if a second additional is filled out? I tried everything and i really have no clue about all of this and i would be REALLY thankful if any of you guys could help a newby to get his website done and perfect it. thanks in advance for any replies, help or websites/infos where i could get help. |
|
#4
|
|||
|
|||
|
Quote:
thanks but could you explain it a lil i am sorry to bug you. do i have to insert that in the head...../head? and what do i have to change about it to make it work for me ?? last question, will it work while the form is on my computer and not on the server? sorry for all the questions again and thanks for your help |
|
#5
|
|||
|
|||
|
Implement the script between the <head></head> tag. In this example the password-fields are called Password and Password2. To trigger the function:
<form name="theformname" action="somepage.php" action="post" onsubmit="return checkPw(this)"> or <input name="submit" type="submit" value="Save" onclick="return checkPw(this)"> The script must be uploaded to the server in the page that you need to run the script in. Regarding the last question, I don't know PHP, so I'm not able to help you out there. Sorry. |
|
#6
|
|||
|
|||
|
Quote:
oh thanks a lot. does that work with e-mail too??? |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Development > Online Store problems |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|