guys! Im new in PHP and im developing a small website wherein there's many images on the page and when i click one of the image it must be shown into another page with full details.. but the problem when i click one of the image it shown's nothing! I tried to use $_SESSION[]; but I can't get the logic how to properly use it.. thnx.. please help..

Member Avatar
Member Avatar
+0 forum 11

How I can send emails to gmail, yahoo, etc. from localhost. I am using XAMPP in windows. What are the necessary changes in php.ini ??

Member Avatar
Member Avatar
+0 forum 13

how to send mails individually instead of sending to all recipients together? my code is: function SendMail($msg,$subject,$addresses) { require "class.phpmailer.php"; //Fetch from email here foreach($addresses as $key=>$val){ $email = test_input($val); if((trim($email)=='') || (!filter_var($email, FILTER_VALIDATE_EMAIL))){ unset($addresses[$key]); } } $addresses=array_unique($addresses); $row = FetchAllsettingsCustomMailchmp(); //end fetch $mail = new PHPMailer(); $mail->PluginDir = ""; $mail->Host = "localhost"; $mail->From = $row['email_from']; $mail->FromName = $row['sitename']; $mail->Subject = $subject; foreach ($addresses as $address) $mail->AddAddress($address); $mail->MsgHTML($msg); $mail->IsHTML(true); $mail->AltBody ="Order"; $mail->CharSet = 'UTF-8'; $success = $mail->Send(); $try = 1; while((!$success)&&($try<1)&&($mail->ErrorInfo!="SMTP Error: Data not accepted")) { sleep(5); $success = $mail->Send(); $try++; } $mail->ClearAddresses(); if(!$success) return false; else return true; } …

Member Avatar
+0 forum 0

Hello i cant understand how i can send database info to user for example i want to send my note which contain (date, text, title and other info) and this info is under ID for ex. (123456) please someone explain me how i can do that or help me thank you :)

Member Avatar
Member Avatar
+0 forum 3

Hi everybody. I have a page with some post's title in it. I have put every title in an <a> tag. I want to click on each title and enter into an other page (single-post-page.php) to see the content of that post's title. The script of that page (single-post-page.php) should get that post's id when i click on the title's link to send it to the db and get that post's content to echo on the page. But my problem is that how i can send post's id to that (single-post-page.php) page by clicking on each title's link?

Member Avatar
Member Avatar
+0 forum 6

I just love generators in Python. One of the cool things I found out from [this](http://nedbatchelder.com/text/iter.html) site was that one could send in a value when calling on an active generator. To do so one uses the send() method and a yield like so: "x = yield". The send with a value will assign the sent value to the variable associated with the yield. I used this once to iterate through my generator once with one set of values, and then later with a different set. Cool stuff.

Member Avatar
+0 forum 0

hi all, i want to send sms to mobile phones from web site . is there any solution for this ....... give me idea!!!!!!!!.......

Member Avatar
Member Avatar
+1 forum 20

I am trying to send Email using email sending software through smtp server But I am getting this Error. The message could not be sent to the SMTP server. The transport error code was 0x80040217. The server response was not available we use 2 other email accounts but the same problem any one having any idea about it please Help me. Thanks

Member Avatar
Member Avatar
+0 forum 2

How can I send some data to a MySQL database? I'm using php.

Member Avatar
Member Avatar
+0 forum 5

<?php include 'ProcessDAO.php'; $dest=""; if(isset($_POST['login'])){ session_start(); // i get an error in this line !! $_SESSION['status']='online'; $_SESSION['breadcrumb']='home'; $pro = new ProcessDAO(); $dest = $pro->LogIn($_POST['username'],$_POST['password']); }else{ session_start(); $dest ="Location: ../index.php"; session_destroy(); } header($dest); ?> guyss can you help me out because in my Login.PHP file when i login i always get this error . >** Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\IPMS\process\ProcessDAO.php:1) in C:\xampp\htdocs\IPMS\process\login.php on line 5**

Member Avatar
Member Avatar
+0 forum 6

Alright so what I'm trying to do is send the form data to the value of whatever checkbox is checked in checkbox_1. <html> <head> <title>Untitled Document</title> <h1>Student Request Form</h1> </head> <body> <?php if(isset($_POST['checkbox_1'])) { $checkbox_1 = implode(",", $_POST['checkbox_1']); $to=implode(",", $_POST['checkbox_1']); $subject = "My subject"; $txt = "Hello world!"; mail($to,$subject,$txt); } else { $checkbox_1 = ""; } ?> <?php if(isset($_POST['checkbox_2'])) { $checkbox_2 = implode(",", $_POST['checkbox_2']); } else { $checkbox_2 = ""; } ?> <?php $con = mysqli_connect("localhost","root","admin","form2"); if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } /*Get Values from form*/ $todays_date=""; if(isset($_POST['todays_date'])){ $todays_date = $_POST['todays_date']; } $student_fname=""; …

Member Avatar
Member Avatar
+0 forum 2

Here is my code. #include <iostream> #include <math.h> #include <winsock.h> #include <windows.h> #include<stdio.h> #include<stdlib.h> #include<string.h> using namespace std; int main() { SOCKET s; WSADATA wsadata; int error = WSAStartup(0x0202, &wsadata); //Did something happen? if (error) return false; //Did we get the right Winsock version? if (wsadata.wVersion != 0x0202) { WSACleanup(); //Clean up Winsock return false; } //Fill out the information needed to initialize a socket… SOCKADDR_IN target; //Socket address information target.sin_family = AF_INET; // address family Internet target.sin_port = htons (53000); //Port to connect on target.sin_addr.s_addr = inet_addr ("192.168.29.1"); //Target IP s = socket (AF_INET, SOCK_STREAM, IPPROTO_TCP); //Create socket if …

Member Avatar
Member Avatar
+0 forum 2

Hello there, For my project, I want to add notification feature where one user can send request for something and other user views by clicking button or something like that as a notification/alert similar to friend request in facebook. I dont know how to implement this feature. Thanks in advance.

Member Avatar
Member Avatar
+0 forum 5

how to send an email from localhost xampp?? anyone give me a proper procedure... i'm confused.

Member Avatar
Member Avatar
+0 forum 7

this is my sendmsg coding page. Am i right? its not working. First i got fatal error: call undefined function curl_init(). i cleared that error. now it takes time to load 10 to 15 seconds and show error in that page. coding is below... $name = $_POST['name']; $connum = $_POST['connum']; $email = $_POST['email']; $msg = $_POST['msg']; $msg = "$name $connum $email"; $from = "FROM"; $to = "9876543210"; $username = "xxx"; $password = "yyy"; $hash = "RjK=H4kL"; $formcountry = "91"; $sourceinfo = "1"; $url = "http://absolutesms.com/Sendsms.aspx"; $fields = array ( 'from'=>urlencode($from), 'to'=>urlencode($to), 'username'=>urlencode($username), 'password'=>urlencode($password), 'hash'=>urlencode($hash), 'formcountry'=>($formcountry), 'sourceinfo'=>($sourceinfo) ); $ch = curl_init(); …

Member Avatar
Member Avatar
+0 forum 14

Traceback (most recent call last): File "C:/Users/James/Desktop/Quikemail.py", line 54, in send s.sendmail(me, you, msg.as_string()) File "C:\python 25\lib\email\message.py", line 131, in as_string g.flatten(self, unixfrom=unixfrom) File "C:\python 25\lib\email\generator.py", line 84, in flatten self._write(msg) File "C:\python 25\lib\email\generator.py", line 116, in _write self._write_headers(msg) File "C:\python 25\lib\email\generator.py", line 162, in _write_headers header_name=h, continuation_ws='\t').encode() File "C:\python 25\lib\email\header.py", line 402, in encode return self._encode_chunks(newchunks, maxlinelen) File "C:\python 25\lib\email\header.py", line 362, in _encode_chunks _max_append(chunks, s, maxlinelen, extra) File "C:\python 25\lib\email\quoprimime.py", line 97, in _max_append L.append(s.lstrip()) AttributeError: 'list' object has no attribute 'lstrip' My code is here: #!/usr/bin/env python import smtplib,traceback from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText …

Member Avatar
Member Avatar
+0 forum 5

Hi everyone, how can I send data from one application to another. Something like a chat. I have 2 applications opened and then I want to send some data, for example label1.text, to the other opened application and then for example show it with a MSGBOX. Do I nees a server to where both apps will connect? Where can I find some code example todo it? thanks.

Member Avatar
Member Avatar
+0 forum 2

Hi all! I have a problem which I can't seem to fix. I would like to know is it possible to send a normal JS variable to a php page. I've tried the following and nothing seems to work. <input type="submit" value="Bookmark" onclick="bookmark();"> function bookmark() { var pageNum = 2; var xmlhttp; if (window.XMLHttpRequest) { xmlhttp = new XMLHttpRequest(); }else{ alert("Not assigned!"); } xmlhttp.open("GET", "Bookmark.php?pageNum="+pageNum, true); xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); with or without this it doesn't work xmlhttp.send(); alert("Bookmark send!"); } Then in the php: $pageNum = $_GET['pageNum']; echo "Page numbers:" + $pageNum; I've tried post aswell and I've tried ` var …

Member Avatar
Member Avatar
+0 forum 7

Another solution i've been searching for days now is for sending mail to actually existing accounts, but haven't quite found it yet. I have this functionality in my code where i can search and select professors individually for setting question papers. The search and select pages are working fine, so is the page where i assign them login credentials for setting papers. Now, since i(as admin) am assigning them the login credentials, i need to communicate that information to the selected professors. For this, i figured i'd mail them. I've set up a valid gmail account from where i want …

Member Avatar
Member Avatar
+0 forum 13

I have created email account in my website(ex: info@mywebsite.com) to use it for sending clients feedback.please guide me in jsp code to solve problem.. and sorry for bothering!

Member Avatar
Member Avatar
+0 forum 1

Hi, I have an issue sending HTML mail with Yahoo Business Hosting. I developed a web site for a friend to raise quotes for their cleaning company. I tested everything on my two of my hosts and everything works fine, I have created similar mail scripts for other people and they all work fine on other hosts. When I use this script on Yahoo Business, it sends the mail correctly with the exception of the body of the email which is blank. This is my send mail code ( The HTML is created as a string earlier on the page …

Member Avatar
Member Avatar
+0 forum 1

I want to send mail from my php site. But i dont have any idea about how to configur it. I am using BigRock Hosting service. And the code below shown is using now as the sendmail.php page to send mail.. <?php $to = $to; $subject = "My subject here"; $message = "Hello! This is a simple email message."; $from = "Mymailaddress@example.com"; $headers = "From:" . $from; mail($to,$subject,$message,$headers); echo "Mail Sent."; ?> Please help me!!

Member Avatar
Member Avatar
+0 forum 1

how ca send the packet using button send to the serail port i recieved the packet but how send this packect through the serail port thanks for your reply the code is Imports System Imports System.ComponentModel Imports System.Threading Imports System.IO.Ports Public Class frmMain Dim myPort As Array 'COM Ports detected on the system will be stored here Delegate Sub SetTextCallback(ByVal [text] As String) 'Added to prevent threading errors during receiveing of data Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ' When our form loads, auto detect all serial ports in the system and populate the …

Member Avatar
Member Avatar
+0 forum 1

Can we send and receive a mail on lan in RHEL 6 if yes how ?

Member Avatar
Member Avatar
+0 forum 1

hi all, i am sending mail through exchange server version Exchange2010. below is my code: static void Main() { try { string owausername = string.Empty; string owapassword = string.Empty; string mailFrom; string mailTo; string mailSub; string mailBody; ServicePointManager.ServerCertificateValidationCallback = CertificateValidationCallBack; ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010); EmailMessage email = new EmailMessage(service); string reg_subKey = "Software\\VB and VBA Program Settings\\LangServ15.2"; RegistryKey root = Registry.CurrentUser.CreateSubKey(reg_subKey); foreach (string keyname in root.GetSubKeyNames()) { using (RegistryKey key = root.OpenSubKey(keyname, true)) { foreach (string valueName in key.GetValueNames()) { if (valueName == "owausername") { if (key.GetValue(valueName).ToString() != "") { owausername = key.GetValue(valueName).ToString(); } } if (valueName == "owapassword") …

Member Avatar
Member Avatar
+0 forum 9

Hi, In my program, i have created 10 richtextbox dynamically. in all richtextbox i gather text form various websites. All is going fine. now what i want is- i need to print all/selected richtextbox text to printer and also saves it to Word file as following formate: * Richtextbox1 (or something like header) *richtextbox1.text............. ............................... ............................... ............................... =========================================* * Richtextbox2 (or something like header) *richtextbox2.text............. ............................... ............................... ............................... =========================================* * Richtextbox3 (or something like header) *richtextbox3.text............. ............................... ............................... ............................... =========================================* Can anyone help me on this issue? I hope i can do a crystal report based on it. But I …

Member Avatar
Member Avatar
+0 forum 6

In my app, I have a text box that takes the text and transfers it to w Word doc for printing. It does this with the bookmark feature in Word. On the Word doc, I only have "X" amount of space. The bookmark in Word will auto size and fill with as much text as I want, but I need to limit this, and only have (for example) up to 900 characters in that specific bookmark. The remainder of the text I need to go to a seperate sheet. Here is the (stripped down) code I use to transfer the …

Member Avatar
Member Avatar
+0 forum 4

From the script below, the commented part of the script is to prevent the script from hanging. The script as is , is working once I uncomment the openning of the file to retieve the body of the email, the script hang. use Email::Send; use Email::Send::Gmail; use Email::Simple::Creator; # open the file that contains the body of the email # local $/ = undef; # open(FH,'<','body.txt') or die "file does not exists $!"; # my $body=<FH>; # close(FH); my $email = Email::Simple->create( header => [ From => 'arishy@gmail.com', To => 'arishy@gmail.com', Subject => 'testing sent mail to gmail', ], body …

Member Avatar
Member Avatar
+0 forum 2

I want to send the message from my PC to my mobile usnig vb.net...... please help me.... it's urgent...... and if possible please provide the code.... thank you for your help in advance.... :)

Member Avatar
Member Avatar
+0 forum 2

Hi all Im trying to send integer value from combobox in form 1 to textbox in form 2 I try use this code on form2 : me.textbox.text = form1.combobox.selectedvalue This code works with a textbox **does not have a data source** but when I **set** the data source for the textbox, code does not appear Value What's wrong !

Member Avatar
Member Avatar
+0 forum 1

The End.