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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Apr 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation [noob question] post + aspx

    My situation is I have arrived at a company that has a ASPX website that needed increased functionality. I am a PHP developer and have near zero experience with ASP. I was able to construct a web page with ASPX however, the from I wrote has data that needs to be send to a php script via POST. I supplied the target URL and all. I have read from google you have to remove the "ruund=server" tag. I have done this but when I push submit, my data doesn't get sent. I even rewrote the page so its just pure HTML. However, if I link to this HTML page, from a ASPX page, when I click submit, nothing happens. If I click it again, it will submit. How can I get this simple HTML site to send data via POST after linking to it from an ASPX page.

    Here is the website: http://midland-truck.com/

    Notice, if you click the "Newsletter" Link in the top right and click submit, nothing will happen. However, if you navigate to the page directly, it will work as expected.

    http://midland-truck.com/newsletter.html

    Any ideas, any and all help is appreciated.

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,210
    Thanks
    75
    Thanked 4,343 Times in 4,309 Posts
    Works the same for me, either way.

    Mainly, it doesn't work.

    Because your PHP page seems to be trying to post back to the "sent.aspx" page, which is surely a mistake.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #3
    $object->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Jun 2003
    Posts
    3,088
    Thanks
    2
    Thanked 23 Times in 23 Posts
    You can have an ASPX page send data to a PHP script for processing, but there is no way I'm aware of that the data in a PHP script can be sent back to an ASPX page. If you are going to successfully modify this website, you need to learn ASP.NET, which is what your ASPX page is. Either that or rewrite it in PHP, which you say you're familiar with.

    As an aside, I'm moving this thread to the ASP.NET forum, which is where it really belongs.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    SNAP to it!


  •  

    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
    •