Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7406179
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:31:03+00:00 2026-05-29T05:31:03+00:00

I want to send some value to a asp.net form for sending sms by

  • 0

I want to send some value to a asp.net form for sending sms by PHP but it doesnt send any value , i think the problem is from asp.net form element name for example a name of text field is “ctl00$ContentPlaceHolder1$txtnum”

my code :

<?
$text=$_GET['nome'];

    $strCookie = "ASP.NET_SessionId=uwf4xv55la1ojtjsm0sbnynb;vipcard=210927C5B78543C4A0645F15A561D171F5D3FEADF320B173E380799EB6B5086F7472F9910C39496F84C6EF7C86356E5E1BB8E22F9E93C59C347FC7301D954CA669F22E6D4A3655136BD0929FE4AE1A36416DD2FAC65A6CF4EBC3DC5D7907B455C02D1762D11FFEA07C4DA8260371EA4dfgdfA6CEC59A7";
    // set URL and other appropriate options
    $url = 'http://www.sms.com/seller/HomePage.aspx';

//set POST variables
$fields = array(
    'ctl00$ContentPlaceHolder1$txtnum' => '092983940***',
    'ctl00$ContentPlaceHolder1$dds1' => '30001607' ,
    'ctl00$ContentPlaceHolder1$t3' => "hello how are u",
    'ctl00$ContentPlaceHolder1$Button2' => 'submit'
                );

// set user agent
$useragent = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.5) Gecko/20060719 Firefox/1.5.0.5';

//open connection
$ch = curl_init();

//set the url, POST data, UserAgent, Timeout, etc.
curl_setopt( $ch, CURLOPT_COOKIE, $strCookie );
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
curl_setopt($ch, CURLOPT_POSTFIELDS,$fields);
//curl_setopt($ch, CURLOPT_CONNECTTIMEOUT_MS, 500000); //time out of 0.5 seconds.

//execute post
curl_exec($ch);
?>

is this possible to send value to asp.net form ?
is there any other idea ?
Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T05:31:04+00:00Added an answer on May 29, 2026 at 5:31 am

    It is possible to send data directly to an asp.net web page, however it may ignore the request if it isn’t designed to process direct posts.

    In reference to the form names you are seeing asp.net builds control names based on their location in the page hierarchy.

    The name ctl00$ContentPlaceHolder1$txtnum implies that the field named txtnum is placed inside a contentplaceholder.

    On the server side the asp.net form collection will contain a form post variable named txtnum, and not the longer version which is there to ensure uniqueness within the page.

    All this being said if the page is not setup to process direct post submissions then it will ignore the data being sent.

    ASP.net pages typically will work using post back events which means the processing of the data will be placed inside an onclick event for that button control, the event is raised and handled within the page lifecycle.

    If you need to post directly to the ASP.net page I would check with the company hosting the page if they have a page or service that you can post directly to.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to send some values from my iPhone application to an ASp.Net web
I am sending email through gmail, i want to send some html content, is
I want send e-mail with some images in content. I think I must attached
i'm trying to send some radio buttons from a form with ajax, the problem
I want to send some text value to my custom popup window when it
I make a bot program and i want to send some keyboard keys between
I am using WCF to send some Linq objects across the wire. I want
Is this possible to do? I want to ping or send some kind of
I have some large chunk of data that I want to send to the
I want send a email by Email Class in codeigniter with gmail, but i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.