form post action going to wrong URL - html

I have another personal website I want to post my form to, see code
<form name="requestPrint" action="www.mysite1.com/set_var.cgi"
method="POST">
<input name="value" type="hidden" size="8" value="1">
<input type="hidden" name="page" value="mypage.html"/>
<input type="hidden" name="index" value="94"/>
<input type="submit" value ="Print">
</form>
However when the form posts it goes to www.mysite2.com/www.mysite1.com/set_var.cgi
Is there a way to point it to just www.mysite1.com/set_var.cgi?

You should try the following:
action="http://www.mysite1.com/set_var.cgi"

Related

To where does a form in an IFRAME POST?

I got this form inside an iframe and want to know where the post actually goes. When I go to the network tab, it only shows the src of the iframe and not where the POST request was sent.
<iframe id="popupOverlay_iframe" name="popupOverlayWindow" src="/cgi-bin/admin/radio_contact.cgi?action=add&member_org_id=46757"></iframe>
The page inside this iframe contains the following:
<form name="add_member" method="post" onsubmit="return submitForm(this);" _lpchecked="1">
<label>
<input type="text" name="email.email" id="email.email" value="" class="init_focus" placeholder="Email:">
</label>
<input type="hidden" name="action" id="action" value="add">
<input type="hidden" name="step" id="step" value="email">
<input type="hidden" name="type" id="type" value="employee">
<input type="hidden" name="member_org_id" id="member_org_id" value="46757">
<input type="submit" name="submit" id="submit" value="Next">
<input type="hidden" name="redirect" id="redirect" value="https://stagemms.nationalmediacalls.com/cgi-bin/admin/radio_detail.cgi?action=show&id=46757">
</form>
On submit, the JavaScript function submitForm is called and its result is returned.
If submitForm and thus the snippet returns false, the form won't be submitted. (The JS might do it's own request.)
If submitForm and thus the snippet returns true, the form will be posted to the current page (/cgi-bin/admin/radio_contact.cgi?action=add&member_org_id=46757) because no action was specified.
In this situation, you should have seen something like this in your network tab:
(/foo.html is url of the outside page, and /foo.cgi?action=add&member_org_id=46757 is the url of the page in the iframe.)

Go to a link by using it's parameters?

I have a url and the button doesn't work right so i'm having to input the values into the url. I know it's possible to take the values and put them into the url to get to the page. How is this done? For example
<form method="get" action="https://example.url.com/courses/enrol/manual/manage.php" id="enrolusersbutton-1">
<div>
<input type="submit" value="Enroll users">
<input type="hidden" name="enrolid" value="276">
<input type="hidden" name="id" value="92">
</div>
</form>

Skrill Payment gateway displays only "Skrill Digital Wallet" payment option

I was trying to integrate the skrill payment gateway to my website. I used the below HTML code
<html>
<body>
<form action="https://www.moneybookers.com/app/payment.pl" method="post">
<input type="hidden" name="pay_to_email" value="xxx#xxx.com"/>
<input type="hidden" name="language" value="EN"/>
<input type="hidden" name="amount" value="60"/>
<input type="hidden" name="currency" value="USD"/>
<input type="hidden" name="detail1_description" value="YourApp"/>
<input type="submit" value="Pay!"/>
</form>
</body>
</html>
However it is showing only the "Skrill Wallet" payment method. yohan#theacetechnologies.com is not a test account, it is my real account. And I am from Sri Lanka.
Can you help me to find what is going on here?
Way back when Skrill was Moneybookers our integration used...
<input type='hidden' name='hide_login' value='1'>
<input type='hidden' name="payment_methods" value="ACC">
The alternate option was...
<input type='hidden' name='hide_login' value='0'>
<input type='hidden' name="payment_methods" value="WLT">
Hope this helps.

HTML form name replaced with wrong symbols

I have the following form
<form name="input" action="http://testdomain.com/search/?" method="get" autocomplete="off">
<input type="text" name="?wpv_paged_preload_reach=1&wpv_view_count=1&wpv_post_id=205499&wpv_post_search=">
<input type="submit" id="searchsubmit" value="">
</form>
However the actual URL displays the following search query:
/search/?%3Fwpv_paged_preload_reach%3D1%26wpv_view_count%3D1%26wpv_post_id%3D205499%26wpv_post_search%3D=test
It seems that special symbols such as ? and = are getting replaced with special Encoding characters.
My question is, how do I get the form to not switch my special symbols with the encoding characters?
Thanks
The name of an input element controls the name of one field. The browser doesn’t blindly mash it and its value together and send that to the server. For a GET request, you can include each one as a hidden field:
<form name="input" action="http://testdomain.com/search/" method="get" autocomplete="off">
<input type="hidden" name="wpv_paged_preload_reach" value="1" />
<input type="hidden" name="wpv_view_count" value="1" />
<input type="hidden" name="wpv_post_id" value="205499" />
<input type="text" name="wpv_post_search" />
<input type="submit" id="searchsubmit" />
</form>

How to keep a customer on the same page after they click "add to cart"

I'm attempting to create my first business webpage. I would like to add a message box where they can submit a personalized message. My question is, how can I code it so they can enter the message and submit it, but not be redirected to their shopping cart (paypal)?
This is the code as of now:
<!-- START SAMPLE PAYPAL FORM 5 -->
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post" style="margin: 0px">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="website#email.com">
<input type="hidden" name="item_name" value="Custom Message">
<input type="hidden" name="custom" value="">
<input type="hidden" name="return" value="http://your-domain.com/thanks-payment.htm">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="quanity" value="1">
<input type="hidden" name="add" value="1">
<input type="hidden" name="amount" value="0.01">
<!-- START COMMENTS LINES -->
<input type="hidden" name="on0" value="Custom Message">Enter Item Comments:<br>
<TEXTAREA ROWS="4" COLS="17" name="os0">
</textarea><br>
<!-- END COMMENTS LINES -->
<input type="image" src="http://www.paypalobjects.com/en_US/i/btn/x-click-but22.gif" border="0" name="submit" alt="Submit Quote" vspace="4"><br>
</form>
<!-- END SAMPLE PAYPAL FORM 5 -->
A simple way,
Look here for basic jQuery UI Modal Window:
http://jqueryui.com/dialog/
And here to make the ajax call to the server with jQuery:
http://api.jquery.com/jquery.ajax/
See this Stackoverflow question for an example:
How Do I Create a multi submit form with no page reload?