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 9254689
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:32:06+00:00 2026-06-18T11:32:06+00:00

I would like to post have a form that sits on a non secure

  • 0

I would like to post have a form that sits on a non secure page without using the fully qualified domain name.

http://www.domain.com/page.aspx

post to a secure service on the same domain

https://www.domain.com/service.aspx

I am currently doing this which works.

<form action="https://www.domain.com/service.aspx" id="formId" method="POST">

The main issue is that we have qa versions of the site

http://qa.domain.com/page.aspx
https://qa.domain.com/service.aspx
the form here looks like

<form action="https://qa.domain.com/service.aspx" id="formId" method="POST">

and there is some publishing issues because when we publish from qa to prod we have to manually update the domain name.

What I’d like to do is somehow point to

<form action="/service.aspx" id="formId" method="POST">

but make the form use the prefix https. We can dynamically write the URL in the form, but I was looking for a way to do it with HTML.

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-06-18T11:32:07+00:00Added an answer on June 18, 2026 at 11:32 am

    You can’t do this with URL syntax. You must always restate anything to the right of the component of a URL that you change when constructing relative URLs.

    You could generate the URLs programmatically (preferably with server side code).

    Note, that as per my comment on the question, you shouldn’t do this.

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

Sidebar

Related Questions

I have a basic form that I would like to submit using ajax, without
I have the following javascript: $.post(/Authenticated/DeletePage/ + PageId); showStatus(Page deleted..., 10000); I would like
I would like to know how to submit POST data for a form using
I have a form field that I would like to empty immediately the submit.
I have a Form class that contains many fields. I would like to render
I have a form that looks like this <form action=receiver.pl method=post> <input name=signed type=checkbox>
I have a form that I would like to validate that a field exist
I have a form that I use in my CMS that I would like
I have a custom posttype in Wordpress 3. I would like to every post
I would like to POST data from my Windows Phone to a webpage that

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.