" data-bs-original-title="" title="">
You can write your redirection code right after mail($to,$subject,$message,$headers); //calling php mail function header("Location: page.php"); that will redirecy after sending the mail
I want to store my array into my database using jQuery. Here is my code i'm using serialize(); function. Its storing correctly but when i unserialize(); nothing happening. Please help here is my code. <script> $(document).ready(function(){ $("#save-skills").click(function(){ var skills = $('input[name="skills[]"]').serialize(); console.log(skills); $('#loading').css('display', 'block'); var queryString = "skills=" + skills …
On your code you written entire body in head seaction. try to keep seperately. <html> <head> <title>You'r document title here</title> </head> <script> // your script goes here </script> <body> <!-- Content goes here --> <script> // Your script goes here </script> </body> </html> to avoid errors.
Can you post the jquery code of your webpage ?
Dear archie.herbias, Try `header("Location: " . $profile_url);`
Dear Arjun_Sarankulu, Better to write code for inserting mssql using that cron job php file only.. Know how to insert data into mssql using php http://php.net/manual/ru/function.mssql-query.php
Dear ratanji, You can take the advantage of jQuery. Ofcourse it might possible with only with jQuery or ajax. So follow the steps. > Step 1:- Create a PHP page that can able to search the database for the new post. > Step 2:- Use some interval to call a …
`$name = $_FILES['myfile'] ['name'];` will assign new name to the uploaded file. where `$tmp_name = $_FILES ['myfile'] ['tmp_name'];` will get the temp name of the uploaded file. Suppose if you upload a file the system will automatically uploaded it to temp folder and it will assign some random code. That …
Step 1: Connecting database `$con = mysql_connect("localhost","munna","abc123");` // Connecting the db host. `$db = mysql_select_db("database_name_here", $con);` // Selecting database. Step 2: selecting the user email addresses $emails = mysql_query("SELECT email FROM user"); while($mail = mysql_fetch_array($emails)){ $user_email = "{$mail['email']}"; // email is the field of the email in the table user …
@Andyy121 You need to follow the syntax, for a beginer string concatnation is very difficult. Better to use the follow syntax. // Connecting a database host using username & password $con = mysql_connect("host", "username", "password"); // Selecting the database $db = mysql_select_db("database", $con); Now you have to query the db …
Hey guys, i'm dng a website with geographic location, i want to track user's city or country with PHP, is it possible ? please help me guys. Thanks in advanse
try to add this `$pdf->SetY(-25);` after 12th line in your code. Lets try and let me know if it not working.
I want to working with login system jQuery ajax and json. I'm facing no problem with success function. I dn't know how to through custom errors like "incorrect login". Here is my code, Please help me. <script> $(document).ready(function(){ $("#login").click(function(){ if($("#defaultEmail").val() == ""){ $("#defaultEmail").addClass("field-err"); $("#defaultEmail").focus(); }else if($("#defaultPassword").val() == ""){ $("#defaultEmail").removeClass("field-err"); $("#defaultPassword").addClass("field-err"); …
I have problem with writing csv file using **fputcsv**. Its putting the page html also into the csv file. Whats wrong with my code ? //Excel header header("Content-Disposition: attachment; filename=\"Delivery_Reports.csv\";" ); header("Content-type: application/vnd.ms-excel"); $out = fopen("php://output", 'w'); $flag = false; // $result = mysql_query("SELECT * FROM senderids ") or die('Query …
Dear All, I'm struglling with one small prblm with my code. // Charecter count $(document).ready(function (){ $('#msgbx').click(function(){ var charLength = $(this).val().length; $('#charcount').html(charLength + ' of 250 characters used'); // Alerts when 250 characters is reached if($(this).val().length > 250){ $('#charcount').html('<strong>You may only have up to 250 characters.</strong>'); }); }); Please help …
Dear ryantroop, you no need to create a div dynamically. First you create div statically set the div style display:none > <div id='preload' style='display:none;'><img src='images/loader.gif'/></div> On the function start you can display this div by setting the style to block. And again on the success response you can hide the …
Hie all, I'm developing a bulk sms website, there are users and resellers for the site. I want to map my to another ip through A record. Problem is how to identify the ip user / reseller ? Please help me.
Dear All, I'm developing a Bulk SMS application. I want to send Shedule sms using php. I'm not aware of sheduled Or timing interval things in php. Please help me.
I have a Query string > { "id": "105201322211272730088", "name": "Rayidi Radha Krishna", "given_name": "Rayidi", "family_name": "Radha Krishna", "link": "https://plus.google.com/105201322211272730088", "picture": "https://lh3.googleusercontent.com/-UTEdowBnUUE/AAAAAAAAAAI/AAAAAAAABd0/FrCv9VX1Pp4/photo.jpg", "gender": "male", "birthday": "0000-09-23", "locale": "en" } I want to convert this Query string to an array. thanks in advance.
We all know how to open a mailbox using `imap_open`. Here the problem is i'm creating a maill system here. I'm not able to find to create a mail account with `imap/pop3` in `php`. Is it is possible ? Assume suppose my domain is www.studentmug.com. I want to create a …
Hi firends, hope you all dn well. Here i need one thing ! table1 - Which stores all user's posts ( `id`, `post`, `who` ) table2 - Which stores relations ( `id`, `from`, `to`, `status` ) ( `status` contains `accepted` and `hold` ) here i want to retreve the posts …
# How to access $_SESSION in jQuery ? # I'm developing a existing chat using jQuery with PHP. here is the code function createChatBox(chatboxtitle,minimizeChatBox) { if ($("#chatbox_"+chatboxtitle).length > 0) { if ($("#chatbox_"+chatboxtitle).css('display') == 'none') { $("#chatbox_"+chatboxtitle).css('display','block'); restructureChatBoxes(); } $("#chatbox_"+chatboxtitle+" .chatboxtextarea").focus(); return; } $(" <div />" ).attr("id","chatbox_"+chatboxtitle) .addClass("chatbox") .html('<div class="chatboxhead"><div class="chatboxtitle"><a …
I'm working with a sms gateway thing, now i have to pass a url via GET or POST. i'm tried with fopen("http://api.studentmug.com/bulksms/sms.php?Username=<something>&Password=<something>", "r"); like that. but it didn't worked. Please help me guys. i'm also used curl_init(); it is replying Bad Request. Guys please help me with this. Thanks in …
I'm Working with register module with xmlHttpRequest. I have checking all. When i was trying to redirect after successfull its displaying the response with in the given div. [CODE] <script type="text/javascript"> function showRegister() { if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code …
Dear Friends, I'm Currently using php session ( $_SESSION[''] ), I want to use $_COOKIE Because when a user didn't click the logout button and he closed the website. still he is showing Online because i write the code at the logout page. So If we use $_COOKIE it is …
Hey , You Can Change Your FTP ( File Transfer Protocol ) Username & Password From Your Control Panel.. And Also Change Your control Pannel Passwords Also.. Mr / Ms veedeoo told you as well .
Dear Friends, I'm developing a website that can show online users, When ever a user logged we can update the status to "Online" On our database. Now i'm using AJAX. Is it possible to show the online users without refreshing a page ? That means timed interval for a ajax …
Dear Friends, [CODE]<a href="javascript:void(0)" onclick="javascript:chatWith('babydoe')">Chat With Baby Doe</a>[/CODE] Please convert this into regular php expression please. Thanks in advance
Dear Friends, I'm developing a website that can show online users, When ever a user logged we can update the status to "Online" On our database. Now i'm using AJAX. Is it possible to show the online users without refreshing a page ? That means timed interval for a ajax …
Hi Friends, Please check this code where i was did wrong ? thanks in advance. [CODE]<button type="button" onclick='showData()'>Edit</button>[/CODE] [CODE] <script type="text/javascript"> function showData() { if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 …
echo "<form action='' id='customForm' method='post'>"; echo "<div>"; $mobile = $_SESSION['mobile']; echo "<label for='name'>From : $mobile</label>"; echo "</div>"; echo "<div>"; echo "<label for='name'>Sender Mobile number</label>"; echo "<input type='text' name='recipient' id='mobile' class='error'>"; echo "<span id='nameInfo' class='error'> Mobile number must contain only 10 digits</span>"; echo "</div>"; echo "<div>"; echo "<label for='email'>Message …
Dear Friends, Am trying to builing a social networking site that user can post his update on profile text bat. Once we click on the share button the text field value will pass to the function of xmlHTTP request, but here is not passing a value. Please help me. I …
Dear Friends, Am developing a sms based website. i bought the gsm modem. problem how to connect the com port through php and querying the gsm modem with AT Commands ?? Please help me out [COLOR="Red"]Modem:- Visontek 82GH USB MODEM It supports at commands. [/COLOR] Note:- Am sending sms and …
Connect the database useing mysql_connect(), select the database using mysql_select_db(), query the database with the username and password entered by user EG: mysql_query("SELECT * FROM `tbl_stud` WHERE `st_uname` = '$username' AND `st_pw` = '$password'"); where $username and $password is data collected from login fields username and password respectively.. get the …
General Search : mysql_query("SELECT * FROM `products` WHERE `city` = '$city'"); Just Like That Search : mysql_query("SELECT * FROM `products` WHERE `city` LIKE '$city'");
The End.