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

  • Home
  • SEARCH
  • 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 5850641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T13:10:09+00:00 2026-05-22T13:10:09+00:00

What i am trying to do is get my user to enter in a

  • 0

What i am trying to do is get my user to enter in a phone number and message and then post it to text marketer which send the message.

at the moment if i use a response.redirect the message sense..

response.redirect("http://www.textmarketer.biz/gateway/?username=*****&password=*****&message=test+message&orig=test&number=447712345678")

However, i do not want to send the user there. all i want to do it post the data to the url and that’s all for now and the user stay on the current page.

Any help?

  • 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-22T13:10:09+00:00Added an answer on May 22, 2026 at 1:10 pm

    actually, you don’t have to do this server side (vb), just plain html will do the trick:

    <html>
        <body>
            <form action="http://google.com" method="post">
                <input type="hidden" value="somevalue"/>
                <input Type="submit" value="Submit"/>
            </form>
        </body>
    </html>
    

    this will post the data (and in effect, redirect) to google.com.

    Maybe you could use client script (jQuery) – $.ajax() or $.post(). but I think you will face cross domain restrictions (there is a workaround but its not that clean and straightforward).

    Another is using the HttpWebRequest class. This is server side and the post will originate from your server instead of the client (as what the 1st approach will do). upon calling request.GetResponse(), you can retrieve the output from the remote server and render it on your page. But if you want to post and redirect to the remote url then I guess you should use the first approach.

    EDIT:

    try this in VB:

    Option Infer On
    Imports System.Net
    Imports System.Text
    
    
    Public Class Test
    
        Private Sub TESTRUN()
            Dim s As HttpWebRequest
            Dim enc As UTF8Encoding
            Dim postdata As String
            Dim postdatabytes As Byte()
            s = HttpWebRequest.Create("http://www.textmarketer.biz/gateway/")
            enc = New System.Text.UTF8Encoding()
            postdata = "username=*****&password=*****&message=test+message&orig=test&number=447712345678"
            postdatabytes = enc.GetBytes(postdata)
            s.Method = "POST"
            s.ContentType = "application/x-www-form-urlencoded"
            s.ContentLength = postdatabytes.Length
    
            Using stream = s.GetRequestStream()
                stream.Write(postdatabytes, 0, postdatabytes.Length)
            End Using
            Dim result = s.GetResponse()
        End Sub
    End Class
    

    update2:

    a GET request using HttpWebRequest in VB.net.

    Dim s As HttpWebRequest
    Dim username = "username=" + HttpUtility.UrlEncode("yourusername")
    Dim password = "password=" + HttpUtility.UrlEncode("yourp@assword)!==&@(*#)!@#(_")
    Dim message = "message=" + HttpUtility.UrlEncode("yourmessage")
    Dim orig = "orig=" + HttpUtility.UrlEncode("dunno what this is")
    Dim num = "number=" + HttpUtility.UrlEncode("123456")
    Dim sep = "&"
    Dim sb As New StringBuilder()
    sb.Append(username).Append(sep).Append(password).Append(sep)
    sb.Append(message).Append(sep).Append(orig).Append(sep).Append(num)
    
    s = HttpWebRequest.Create("http://www.textmarketer.biz/gateway/?" + sb.ToString())
    
    s.Method = "GET"
    Dim result = s.GetResponse()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to get a user to enter a number between 1 and
I am trying to get a user to enter a postcode and then compare
I am trying to get if user is logined in facebook, if yes then
Hello I am trying to get the user profile picture and then merge into
I am trying to validate a phone number which is contained over two fields.
I am trying to get a program to let a user enter a word
I'm trying to get a screen in silverlight where the user can enter their
I'm trying get my <a> tag triggered when the user press on the enter
I'm trying to get input from user using array of structs and then print
I'm trying to write a program which prompts the user to enter two 3×3

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.