Go Back   CodingForums.com > :: Server side development > ASP.NET

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-26-2011, 04:11 AM   PM User | #1
aspx
New to the CF scene

 
Join Date: Apr 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
aspx is an unknown quantity at this point
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.
aspx is offline   Reply With Quote
Old 04-26-2011, 07:36 PM   PM User | #2
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,200
Thanks: 59
Thanked 3,996 Times in 3,965 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
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.
Old Pedant is offline   Reply With Quote
Old 04-27-2011, 12:49 AM   PM User | #3
vinyl-junkie
$object->toCD-R(LP);


 
vinyl-junkie's Avatar
 
Join Date: Jun 2003
Posts: 3,053
Thanks: 2
Thanked 22 Times in 22 Posts
vinyl-junkie is on a distinguished road
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!
vinyl-junkie is offline   Reply With Quote
Reply

Bookmarks

Tags
aspx, form, html, post

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:12 PM.


Advertisement
Log in to turn off these ads.