Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
Thread: [noob question] post + aspx
04-26-2011, 04:11 AM #1
- Join Date
- Apr 2011
- Thanked 0 Times in 0 Posts
[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.
Any ideas, any and all help is appreciated.
04-26-2011, 07:36 PM #2
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.Be yourself. No one else is as qualified.
04-27-2011, 12:49 AM #3
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.