Jump to content

Search the Community

Showing results for tags 'send'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL








Donation Link

Found 8 results

  1. helloI have 2 php files . one on my pc and one on my host . which is on the host gets an input and check it and after that returns a string . I want to send that input from my php that's on my pc to another one and give the returned string and use it (without any changes in screen . for example opening firefox) how can i do it . thanks a lot
  2. Hi everyone! I would like to get into $mailsent = mail ( "johnsabol55@gmail.com", "Order: $name", "$message \n \n \n $name \n $email \n \n \n ", ""); a table like this: <table border="0"> <tr> <td width="30"> </td> <td width="120">Foto</td> <td width="30">A4</td> <td width="30">A3</td> <td width="120">other size</td> </tr> </table> It shold be between "$message \n \n \n $name \n $email and \n \n \n ", ""); how can i do that? Dreamweaver shows me always an error
  3. Hi everybody! i got a big problem. i know just html and i would need help of you all guys. i need to create php script, where i gonna generate 4 text fields at once by clicking on "+" sign. every of text fields gonna have another name, that would showed in mail. theres attachment what i mean: orange coloured font contains fields filled out by customer. red coloured font are the names of inputs. ______ in second image is result what happens, if the customer clicks on "+" sign: Photo nr., A3, A4, Another size fields are appeared at once. the order number is changed, the names are changed (from photonr_1 to photonr_2 etc..) so if the customer click on sign 20 times, it shows 20 lines. the last line changes number to 20. THEN Customer "Timothy" clicks on Send and i get the mail that it look like that: Mail Subject: Order - Timothy Robins Message in mail: 1. 1234 Print: A4 x 5, A3 x 2, Other: 3x 15x18mm 2. 5678 Print: A3 x 1, Message:example, example, example, example, example, ______ There are missing lines like Message or A4 because it wasnt filled out. So my question is: is something like that possible to create? I have no idea how to do it..
  4. im working on a project but first i would to understand one thing. i have 2 input type text field with name="firstname[]" as an array (in the example im working with no jquery but it will be generated dinamically with it) and cant make it to mysql. here is what i have: index.php <html> <body> <form action="insert.php" method="post"> Firstname: <input type="text" name="firstname[]"> <br> Firstname 2: <input type="text" name="firstname[]"> <input type="submit"> </form> </body> </html> insert.php <?php $con=mysqli_connect("localhost","inputmultiplicad","inputmultiplicado","inputmultiplicado"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $sql="INSERT INTO input_field (firstname) VALUES ('$_POST[firstname]')"; if (!mysqli_query($con,$sql)) { die('Error: ' . mysqli_error($con)); } echo "1 record added"; mysqli_close($con); ?> the question is: how can i send the firstname[] array to the mysql database?
  5. I am creating kinda like a small social site. I want to be able to send messages back and forth like facebook does. The I M is the email and vise versa. Anyone know how to do it? Where do I start?
  6. Hello..this is my first attempt to ask a question on this forum..I am trying to be as descriptive as possible what I have is select option in 'chart.php' page and once I select the value,it's passed to another 'getvalue.php' page using get. this 'getvalue.php' page will connect and run sql query with the value I sent and make table from the result and send it back using AJAX callback..it works fine for this concept so far. Now, I am trying something else. I am using google charts to visualize the data. So the thing is I run php code from 'chart.php' page where I manually enter the value for the query to take in and create a result for associative array. This array is linked to a variable myurl[]. Afterwards, in this same page 'chart.php'..I am in my Javascript calling this will variable because there is an option for arraytoDatatable in google charts. once all of this is done, the chart is displayed and everything is fine and happy. Now, what I want to do is select a value from the options and send that value in the same 'chart.php' page and run the query and update the google charts...so far I haven't been able to figure out why can't it send the value to the same page. I am not even sure if php can refer to its own self and call the value. Here's the code: <html> <form id="myform" method="GET" action="<?php echo $_SERVER['$PHP_SELF'];?>"> Select a orbital period (in days) <select id="sf" name="star"> <option value="0">0</option> <option value="0.5">0.5</option> <option value="10">10</option> <option value="100">100</option> <option value="365">365</option> </select> </form> <?php $o = intval($_GET['star']); /*$o = '10';*/ echo "$o<br>"; $con = mysqli_connect('localhost','username','password'); if (!$con) { die('Could not connect: ' . mysqli_error($con)); } mysqli_select_db($con,'mydatabase'); $sql="SELECT * FROM exoplanetdb WHERE pl_orbper >= '".$o."' "; $result = mysqli_query($con,$sql); $myurl[] = "['Mass','Mass,Radius(J)']"; while($row = mysqli_fetch_assoc($result)) { $mass=$row['pl_masse']; $radj=$row['pl_radj']; $myurl[] = "[".$mass.",".$radj."]"; } mysqli_close($con); ?> <!--make the chart--> <script src="https://www.google.com/jsapi"></script> <script> google.load("visualization", "1", {packages:["corechart"]}); google.setOnLoadCallback(drawChart); function drawChart() { var data = google.visualization.arrayToDataTable([ <?php echo(implode(",",$myurl));?> ]); var options = { selectionMode: 'multiple', title: 'Mass vs Size(times Jupiter radius)', hAxis: {title:'Mass(times Earths)'}, vAxis: {title:'Radius(times Jupiter)'} }; var chart = new google.visualization.ScatterChart(document.getElementById('chart_div')); chart.draw(data, options); } </script> </html> if something is unclear..plz ask me..I will try to explain..Thank you for your time
  7. I have a contact form that uses send-mail.php. I got it to work on one site and literally copied it to another site but it doesn't work. The error shows and the success message shows and it certainly doesn't send emails. ----------------------------------------------------------------- PHP Code ----------------------------------------------------------------- <?php //vars $subject = $_POST['subject']; $to = explode(',', $_POST['to'] ); $from = $_POST['email']; //data $msg = "NAME: " .$_POST['name'] ."<br>\n"; $msg .= "EMAIL: " .$_POST['email'] ."<br>\n"; $msg .= "COMMENTS: " .$_POST['comments'] ."<br>\n"; //Headers $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=UTF-8\r\n"; $headers .= "From: <".$from. ">" ; //send for each mail foreach($to as $mail){ mail($mail, $subject, $msg, $headers); } ?> ----------------------------------------------------------------- Form Code ----------------------------------------------------------------- <!-- form --> <script type="text/javascript" src="_/js/form-validation.js"></script> <form id="contactForm" action="#" method="post"> <fieldset> <p><input name="name" id="name" type="text" class="text" placeholder="Full Name" title="Enter your full name" /></p> <p><input name="email" id="email" type="text" class="text" placeholder="Email Address" title="Enter your email address" /></p> <p><textarea name="comments" id="comments" rows="5" cols="38" placeholder="Message" title="Enter your comments"></textarea></p> <!-- send mail configuration --> <input type="hidden" value="joshua.ward@me.com" name="to" id="to" /> <input type="hidden" value="Sioux Signs Inquiry" name="subject" id="subject" /> <input type="hidden" value="send-mail.php" name="sendMailUrl" id="sendMailUrl" /> <!-- ENDS send mail configuration --> <p><input type="button" value="Submit" name="submit" id="submit" class="submit" /> <span id="error" class="warning">Something went wrong. Please refresh your page and try again.</span></p> </fieldset> </form> <p id="sent-form-msg" class="success">Your message has been sent. We'll be in touch soon.</p> </div> <!-- ENDS form --> ----------------------------------------------------------------- This same form works on another site. I'm not sure why. Any suggestions?
  8. Hi everyone, I am working on a site, that will allow dentist, doctors and the like to set up automated E-Mail reminders for their clients, instead of having to call them. I am relatively comfortable in php. But I have never done anything with E-Mail before... My main question has to do with sending E-Mail on a specific date. I have seen a few ways to do it, but nothing that really seems desirable. One way, seemed to require that someone be using the site, to send the E-mail. Ie: if an E- mail is supposed to be sent at 6, but no one logs on until 7:30. Then that E-mail won't be sent until 7:30. The other method that I have seen used cron, this second method, seems superior but much more complicated. What method should I use??? Any, hits/tips to get me on the right direction would be appreciated! Thanks, Josh
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.