Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Oct 2009
    Posts
    31
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Paypal form dynamic dropdowns

    Hello,

    I am trying to put a complex paypal form from an asp site into Wordpress.

    The form helps choose the right dropdowns with some asp

    Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Xml.Linq;
    using System.Text;
    
    public partial class UserControls_ShoppingCart : System.Web.UI.UserControl
    {
        public IEnumerable<XElement> StandardCourses { get; private set; }
        public IEnumerable<XElement> ElectiveCourses { get; private set; }
    
        protected void Page_Load(object sender, EventArgs e)
        {
            XElement courseListing = XElement.Load(Server.MapPath("~/App_Data/Courses.xml"));
    
            StandardCourses = from c in courseListing.Elements("DegreePrograms").Elements("DegreeProgram")
                              where c.Parent.Attribute("type").Value == "reg"
                              select c;
    
            ElectiveCourses = from c in courseListing.Elements("DegreePrograms").Elements("DegreeProgram")
                              where c.Parent.Attribute("type").Value == "advanced"
                              select c;
    
        }
    }
    and then uses javascript for the rest and redirects to an html page to send to paypal and redirect back to a thank you page on the original site. I am hoping if I can change the asp to javascript (or php or even ajax) that I can then just set the page up and use it in an iframe to make things easier. I am trying to avoid using a custom contact form and having to re-enter all the options and prices on the page. Also, there is a checkbox for military personnel which gives them a discount. I'm hoping someone can help me, and if I need to post more code, please let me know. Thank you so much.

    Oh, the original form is here!
    http://www.seminary.ws/Admissions/Payments.aspx

  • #2
    New Coder
    Join Date
    Oct 2009
    Posts
    31
    Thanks
    6
    Thanked 0 Times in 0 Posts
    should I post this in the asp section - see if someone can help convert it to javascript so I can add it into my current script?


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •