How do I get checkbox value in email after submit from https://formsubmit.co? - forms

Hi I use https://formsubmit.co as form submit.
Formsubmit only returns one checkbox even if two or more checkboxes is checked.
<form action="https://formsubmit.co/info#enchuga.com" method="POST">
<input type="hidden" name="_subject" value="Snyggt!! Ny beställning av algos">
<input type="hidden" name="_next" value="https://enchuga.com/enchugacap/thanks.html">
Name: <br>
<input class="contactForm" type="text" name="Name" placeholder="Your name" required> <br>
<br>
Mail: <br>
<input class="contactForm" type="email" name="Email" placeholder="Email Address" required> <br>
<br>
Which trading algorithms do you want to order? <br>
<input type="checkbox" id="LosAngeles" name="Algo" value="LosAngeles">
<label for="LosAngeles" class="orderText"> Los Angeles 69€/year (699 SEK)</label><br>
<input type="checkbox" id="London" name="Algo" value="London">
<label for="London" class="orderText"> London 69€/year (699 SEK)</label><br>
<input type="checkbox" id="Paris" name="Algo" value="Paris">
<label for="Paris" class="orderText"> Paris 69€/year (699 SEK)</label><br>
<input type="checkbox" id="Berlin" name="Algo" value="Berlin">
<label for="Berlin" class="orderText"> Berlin 69€/year (699 SEK)</label><br>
<input type="checkbox" id="NewYork" name="Algo" value="NewYork">
<label for="NewYork" class="orderText"> New York 69€/year (699 SEK)</label><br>
<input type="checkbox" id="allAlgos" name="Algo" value="allAlgos">
<label for="allAlgos" class="orderText"> All five algos 260€/year (2600 SEK, 25% discount)</label><br>
<br>
Send a message to enchuga CAPITAL if you wondering about anything or want to ask a question: <br>
<input class="contactForm2" type="text" name="Message"> <br>
<br>
<button type="submit">Send</button>
</form>
How do I get it to return every checkbox checked?
I have tried to create checkboxes that returns the item they checked but I don't get it to work.

Related

Mailto function is not working in Mobile view responsive

hey here is the code whenever my site is converted into the mobile view then mailto function is not working? can anyone suggest to me a solution to how he is works in mobile-view?
<form id="myForm" action="mailto:syedali6097#gmail.com" method="post" enctype="text/plain">
<h2>Win</h2>
<input name="name" type="text" placeholder="Enter Name">
<br><br>
<input name="subject" type="text" placeholder=" Subject">
<br><br>
<!-- <label>Email:-</label> -->
<input name="email" type="text" placeholder="Enter Email">
<br><br>
<input name="number" type="number" placeholder=" Enter Phone Number">
<br><br>
<p class="text-center">Fave Vape Flavour:-</p>
<textarea type="text" name="Description" size="50" rows="5" placeholder="Type Message"></textarea>
<br><br>
<input type="submit" value="Send" onclick="myFunction()">
<input type="reset" value="Reset">
</form>

HTML Form Basics for PayPal Payments Standard custom fields

I'm trying to put a PayPal form on my website but I would also like to put custom fields on it.
I mean, I would like to receive the details that maybe are different from the PayPal details.
Maybe someone does a payment but wants to use a PayPal account with a different email, so I would like to know both the emails.
I would like to create a form with these fields:
First name
Last name
Personal email (not Paypal email)
and I want to be able to see these information when I receive the payment.
This is my form:
<div id="paynow" class="contact_form_invoice_payment">
<div class="invoice_payment_title">Pay your invoice here</div>
<form method="post" action="https://www.paypal.com/cgi-bin/webscr">
<input value="_xclick" name="cmd" type="hidden">
<input value="nessa#stressless.ie" name="business" type="hidden">
<input value="http://www.matrix-test.com/stressless/" name="return" type="hidden">
<input value="0" name="no_shipping" type="hidden">
<input value="1" name="no_note" type="hidden">
<input value="EUR" name="currency_code" type="hidden">
<input value="IE" name="lc" type="hidden">
<input value="PP-BuyNowBF" name="bn" type="hidden">
<input value="0" name="tax" type="hidden">
<input value="Online Payment" name="item_name" type="hidden">
<input value="OP" name="item_number" type="hidden">
<div class="first_name_invoice_payment">
First name (requiered) <br />
<input value="" name="first_name">
</div>
<div class="last_name_invoice_payment">
Last name (requiered)<br />
<input value="" name="last_name">
</div>
<div class="email_invoice_payment">
Email (requiered)<br />
<input value="" name="email">
</div>
<div class="first_name_invoice_payment">
Invoice Number (requiered)<br />
<input id="inv" value="" name="item_number">
</div>
<div class="last_name_invoice_payment">
Amount - Euro Only (requiered)<br />
<input id="amt" value="" name="amount">
</div>
<div class="job_title_invoice_payment">
<input alt="PayPal - The safer, easier way to pay online!" name="submit" border="0" src="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif" type="image" class="no-width image" style="width:auto !important; border:none; margin-top:20px;">
<img height="1" width="1" src="https://www.paypal.com/en_US/i/scr/pixel.gif" border="0" alt="">
</div>
</form>
</div>
I tried to put these fields:
name="first_name"
name="last_name"
name="email"
but I can't see them in the PayPal email and even in the PayPal backoffice.
Try using the variables below to gather the information you are looking for:
on0 = CustomerName
os0 = "Enter First and Last Name"
on1 = CustomerEmail
os1 = "Enter Email Address"
Developer: https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/
Your updated code would look similar to this:
<input value="CustomerName" name="on0" type="hidden">
<input value="CustomerEmail" name="on1" type="hidden">
<div class="first_name_invoice_payment">
First/Last name (requiered) <br />
<input value="" name="os0">
</div>
<div class="email_invoice_payment">
Email (requiered)<br />
<input value="" name="os1">
</div>

How to have completed form emailed to me

I have a form with multiple text inputs, radio inputs, checkboxes and a file input (jsfiddle for reference):
<form name="_xclick" action="https://www.paypal.com/cgi-bin/webscr" method="post" id="form">
<div id="contact">Contact Info
<br><input type="text" name="fname" placeholder="First Name*" required>
<br><input type="text" name="lname" placeholder="Last Name*" required>
<br><input type="text" name="company" placeholder="Company">
<br><input type="email" name="email" placeholder="Email Address*" required>
</div><br>
<div id="Specifics">Specifics
<div id="location">Location
<br><input type="radio" name="pages" id="page1" value="2" required><label for="page1"> /page1</label>
<br><input type="radio" name="pages" id="page2" value="1.5"><label for="page2"> /page2</label>
<br><input type="radio" name="pages" id="page3" value="1.5"><label for="page3"> /page3</label>
<br><input type="radio" name="pages" id="page4" value="1.5"><label for="page4"> /page4</label>
<br><input type="radio" name="pages" id="page5" value="1"><label for="page5"> /page5</label>
<br><input type="radio" name="pages" id="page6" value="1"><label for="page6"> /page6</label>
</div><br>
<div id="topbtm">Top or Bottom?
<br><input type="radio" name="location" id="tb_top" required><label for="tb_top">Top</label>
<br><input type="radio" name="location" id="tb_btm"><label for="tb_btm">Bottom</label>
</div><br>
<div id="selection">Selection
<br><label><input type="checkbox" name="selection" id="s1" value="4"><span>1</span></label>
<label><input type="checkbox" name="selection" id="s2" value="4"><span>2</span></label>
<label><input type="checkbox" name="selection" id="s3" value="4"><span>3</span></label>
<label><input type="checkbox" name="selection" id="s4" value="4"><span>4</span></label>
<label><input type="checkbox" name="selection" id="s5" value="4"><span>5</span></label>
<label><input type="checkbox" name="selection" id="s6" value="4"><span>6</span></label>
<br><label><input type="checkbox" name="selection" id="s7" value="4"><span>7</span></label>
<label><input type="checkbox" name="selection" id="s8" value="4"><span>8</span></label>
<label><input type="checkbox" name="selection" id="s9" value="4"><span>9</span></label>
<label><input type="checkbox" name="selection" id="s10" value="4"><span>10</span></label>
<label><input type="checkbox" name="selection" id="s11" value="4"><span>11</span></label>
<label><input type="checkbox" name="selection" id="s12" value="4"><span>12</span></label>
</div><br>
<div id="weeks">Weeks
<br><select required><option value="" disabled selected>Select one</option><option value="7">1 week</option><option value="14">2 weeks</option><option value="21">3 weeks</option><option value="28">4 weeks</option></select>
</div>
</div><br>
<div id="info">Info
<br><input type="file" name="image" value="image" accept="image/jpg" required>
<br><input type="url" name="url" placeholder="Linked Website (URL)" required>
<br><input type="text" name="color" placeholder="Background Color" required>
<br><input type="text" name="hovertext" placeholder="Hover Text">
</div><br>
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="business" value="(myemail)" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="item_name" value="Purchase" />
<input type="hidden" name="amount" id="total" value=""/>
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!" />
</form>
How can I have the input ID's, not values emailed to me upon a certain action?
I don't know a way to submit this form when a payment is successfully completed (please let me know if this is possible), so another idea I had was to have PayPal redirect to a "success" page when the payment was successful, and submit the form when that "success" page is reached. So 1) how can I have this form be submitted when that page is reached and
2) how can I only receive the input ID's instead of the values?
i didn't understand well .But if you want to get the id of The last record inserted in database , you can use:
mysqli_insert_id($connection_value)
and you can use mail() to send an email !!!.
mail(to,subject,message,headers,parameters);
And if you just want to send your elements id's , There are several ways to do that ! On is to make hidden inputs and pass their values to your page then send them use email ! the secound way that I can suggest you is to use javascript , and make an ajax file that gets you'r form id's then send them to your mail !
Have a good day ! Apr <3

Can't receive all contents of mail

(This are just some of my code for the HTML to cut it short), i don't get it why i can't get the value inputted by the user for the email while i can get values of others like NAME, PHONE, COMPANY etc. can you help me what's wrong? i'm a beginner so please try to be nice. THANK YOU
HTML:
<form action="contact_sendmail.php" method="post">
<label for="first name"> First Name *</label><br>
<input class="textbox" type=text autofocus id="Fname" name="Fname" maxlength="50"size="30" value="" required>
<br>
<label for="last name"> Last Name *</label><br>
<input class="textbox" type=text id="Lname" name="Lname" maxlength="50"size="30" value="" required>
<br>
<label for="email">Email * </label> <br>
<input class="textbox" type="text" id="email" maxlength="50"size="30" value="" required>
<input class="button" name="submit" type="submit" value="Submit">
MAIL FUNCTION:
<?php
if(isset($_POST['submit'])){
$msg = 'Name: '.$_POST['Lname'] .$_POST['Fname'] ." \n"
.'Email: '.$_POST['email'] ."\n"
.'Phone Number: '.$_POST['phone'] ."\n"
.'Company: '.$_POST['company'] ."\n"
.'Number of Employees: '.$_POST['employee_num'] ."\n"
.'Comment: '.$_POST['comment'] ;
mail('example#gmail.com', 'sample contact us Form', $msg);
?>
"<script>" alert('successfully sent'); "</script>"
<?php
}else {
header('location:contact.php');
exit(0);}
?>

jquery mobile checkbox form data

I am struggling to figure out how to pass check box info in jquery mobile for a form. In the form I have the following set of check boxs for users to select what clubs they want:
<li data-role="fieldcontain">
<fieldset data-role="controlgroup" data-type="horizontal">
<legend>Select Set?</legend>
<option value=""></option>
<input type="checkbox" name="t123_irons" id="t123_irons" class="custom" value="3">
<label for="t123_irons">3</label>
<input type="checkbox" name="t124_irons" id="t124_irons" class="custom" value="4">
<label for="t124_irons">4</label>
<input type="checkbox" name="t125_irons" id="t125_irons" class="custom" value="5">
<label for="t125_irons">5</label>
<input type="checkbox" name="t126_irons" id="t126_irons" class="custom" value="6">
<label for="t126_irons">6</label>
<input type="checkbox" name="t127_irons" id="t127_irons" class="custom" value="7">
<label for="t127_irons">7</label>
<input type="checkbox" name="t128_irons" id="t128_irons" class="custom" value="8">
<label for="t128_irons">8</label>
<input type="checkbox" name="t129_irons" id="t129_irons" class="custom" value="9">
<label for="t129_irons">9</label>
<input type="checkbox" name="t12pw_irons" id="t12pw_irons" class="custom" value="PW">
<label for="t12pw_irons">PW</label>
</fieldset>
</li>
I am not sure what to put on my review form to get the checkboxs that are selected since in jQuery mobile the check box group all have different IDs and Names for checkbox groups.This is how I imagine I would get the group if they had one unified name/id:
echo (!empty($_REQUEST['t12_irons'])) ? "<div class='reviewItem'><span class='reviewTitle'>In Set:</span>{$_REQUEST['t12_irons']}</div>" : "";