I see a +0 next to post comments. Thought this was supposed to be votable. Nothing happens on tapping. BTW on Android. Also when I entered a comment and then decided to edit it, the original text did not show up in the edit box. So made me think I wS posting a new additional comment. Meaning I lost it and had to enter a comment for the third time! Also why does edit post appear as an option when I clearly don't have the right to alter somebody else's post?

Member Avatar
Member Avatar
+1 forum 9

Hi All, I have a PHP code which do some changes to the POST variables it receives and redirect the page to some other page. This PHP code was initially designed to work without Ajax. So there wasn't any problem with the redirect function and it perfectly handles the POSt variables and redirect the user to another page. So now I want to use the same PHP code with Ajax... :) I tried it and and it did not gave me the results I was expecting. Problem is with the redirect function. Other PHP lines execute perfectly fine( it stores …

Member Avatar
Member Avatar
+0 forum 8

Please advice me how fastly getting traffic for my website

Member Avatar
Member Avatar
+0 forum 27

I run a website where I periodically post articles. I'd like to add a timestamp/datestamp to each article showing the post date (the upload date, I assume, would be the logical choice). I had already asked for advice on this topic; unfortunately, the result is a blank. Literally. Here's an example: http://theapplenewsreel.com/Example.php After the title and subtitle, there's some small (<h6>) text, which should be followed by the PHP code which displays a timestamp. I'm new to PHP, so I may be doing something wrong. Any advice?

Member Avatar
Member Avatar
+0 forum 9

Hello Daniweb Community, I have been talking on a couple [Facebook](http://www.facebook.com) groups such as sale pages where you post your own stuff for people to buy. Most groups like this have rules about bumping like once per day, every 12 hours etc... So it got to the point where it became annoying to have to bump my posts every so oftern so I managed to construct this script that'll do it automatically with the help of a cronjob that can be set to bump at whatever time you like. So I have made a simple easy to use (ha may …

Member Avatar
Member Avatar
+3 forum 28

Just had a post disappear. Have been ruminating about being nicer to people. heh heh. So spent over 10 minutes crafting a thoughtful reply to this thread: https://www.daniweb.com/programming/web-development/threads/507908/which-tutorial-should-i-pick-out-of-these-member-reg-login-site Posted. Fine, saw it in all its glory. Moved on. Came back later and saw that it had disappeared. In addition, it seems the original post has changed - with what appears to be bbcode and broken links - this was not how it looked when I posted. What happened - was the original post deleted and then re-posted?? Mightily p'd off. Serves me right for trying to be nicer. I knew …

Member Avatar
Member Avatar
+0 forum 3

Hi all, I am trying to compare data from $_POST['Net'] which has 6 elements to check to see if the data has changed in the form when submitted. Below is the Post array from form. array(16) { ["Submitted"]=> string(4) "true" ["NetValue"]=> string(1) "0" ["ProductID"]=> array(6) { [0]=> string(5) "76458" [1]=> string(5) "76459" [2]=> string(5) "76460" [3]=> string(5) "76461" [4]=> string(5) "76462" [5]=> string(5) "76463" } ["Quantity"]=> array(6) { [0]=> string(1) "1" [1]=> string(1) "2" [2]=> string(1) "2" [3]=> string(1) "1" [4]=> string(1) "1" [5]=> string(1) "1" } ["Nominal"]=> array(6) { [0]=> string(4) "5001" [1]=> string(4) "5001" [2]=> string(4) "5001" [3]=> …

Member Avatar
Member Avatar
+0 forum 5

Good afternoon all, The issue I am having is that when POST data values are looped through inside the while loop as each record is compared with the POST data and the database record for any changes. For this test the data from the post is exactly correct. The if statment compares the data and displays this as not eaual when it is? What I can see is happening from what I can see is that the out data when output is not in sync, but not sure how to resolve this example The data output fot the first loop …

Member Avatar
+0 forum 0

http://www.w3schools.com/php/php_forms.asp On the page above I read that GET variables are send via the url and POST variables are sent as an HTTP request. When I tried POST with a simple php script all of my POST variables were still in the URL which is what I was expecting for GET. Could someone clear this up for me? Thanks.

Member Avatar
Member Avatar
+0 forum 5

Hello, There is a post request coming to my portal and I am fetching IP address from the post request on my portal landing page(INDEX view in MVC) and saving in DB table. below is the code to fetch IP address. string Device_IP = ""; if (!string.IsNullOrEmpty(Request.ServerVariables["HTTP_VIA"])) { // ' using proxy // ' Return real client IP. Device_IP = Convert.ToString(Request.ServerVariables["HTTP_X_FORWARDED_FOR"]); } else { // 'not using proxy or can't get the Client IP // 'While it can't get the Client IP, it will return proxy IP. Device_IP = Convert.ToString(Request.ServerVariables["REMOTE_ADDR"]); } It is fetching IP address on my side but …

Member Avatar
+0 forum 0

i will be receiving JSON POST as mentioned on this web page https://sendgrid.com/blog/sendgrids-parse-api-parsing-incoming-email-is-now-faster-and-easier/ how do my application receive this request and process furthur??

Member Avatar
Member Avatar
+0 forum 3

Hi. I want to set `read more` for my cms posts. The code i found was `<?php the_content( $more_link_text , $strip_teaser ); ?> ` but still don't know how and where to use it. Any suggestion?

Member Avatar
Member Avatar
+0 forum 18

Hello. There is an html table in admin page, with head columns (POST ID | POST TITLE | POST AUTHOR | ACTION). And in each row, will contain a post id, a post title, a post author that gets from database. And in the Action column, there is a "delete" word that is a link with href="#" for now. I want the script when i click on the delete word in each rows, erase that row of data from the table of the database and from the html table. I don't know how should i do that. Just need guidance …

Member Avatar
Member Avatar
+0 forum 44

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'm trying to make a curl through php below is the command line : curl -i -H "Accept: application/json" -d "{"username": "divmesselibrary", "password": "677Sure1@"}" https://openlibrary.org/account/login Please I need your help

Member Avatar
Member Avatar
+0 forum 5

At times, I have need to push all submitted form array values into $_SESSION. To do this, I've written a small function: function addPostToSession() { foreach ($_POST as $key=>$value ){ $_SESSION[$key]=stripslashes(strval($value)); } } This works well, as long as $_POST is one dimensional, but in a form with checkboxes, $_POST may contain arrays as array elements. Example: POST: Array ( [othertype] => Server [issues] => Array ( [0] => crashes [1] => freezes ) ) When I use my addPostToSession() function, $_SESSION['issues'] is given the string 'Array' (checked with var_dump). Example: SESSION: Array ( [othertype] => Server [issues] => Array …

Member Avatar
Member Avatar
+0 forum 4

hello, im developing a mass mailing application in php...in lot places i see like post to this address... lik this one.. To upload your attachment do a HTTP PUT of your attachment file to: https://api.elasticemail.com/attachments/upload?username=yourusername&api_key=yourapikey&file=test.csv and Step 3) Call mailer send with the datasource value set: To use the send command POST to https://api.elasticemail.com/mailer/send with the following form values: username=your account email address api_key=your api key from=from email address from_name=display name for from email address subject=email subject body_html=html email body [optional] body_text=text email body [optional] data_source=your csv file name (eg: test.csv) charset=text value of encoding for example: iso-8859-1, windows-1251, utf-8, …

Member Avatar
Member Avatar
+0 forum 10

Hello! Anyone here can explain me please how to create a website that with pages and that works like blogger or wordpress. (I mean, for example: the page have a post limit by 6 post's. if I post something new on my website I want that the first post move instead the second post and the second post to move instead the 3 post ect. the same thing for all post's. When the number of post's for every page, reach 6 posts, automatically I want to be created a new page. another thing: each post will have labels.) So I …

Member Avatar
Member Avatar
+0 forum 4

Dear I am pasha from (Bangalore)India, i have a query In a web page how can i allow a user to write tetimonal online and it should be veiwed by everyone..means that should be present in feedback page...as users post their comments that should go adding on the web page once the user has clicked the button(write Testimony) then a pop-up window will be there in which all the details will be requested for the user to enter like... name, email ID, contact Number, city and Trestimony(in a multi-text box) after entering all the details if the user presses submit …

Member Avatar
Member Avatar
+0 forum 4

Hi All, I am currently trying to update a check box . Then pass the data back through the same page and if set update DB. The code is long so I shall be as concise as possible. I have pulled the data from the DB and I am using a check box to submit and test if checkbox has been submitted using isset $_POST on checkbox. I have also used debug on GET and REQUEST and I am not sure why it does not work. Any assistance would be appreciated. Thanks in advance <?php if (isset($_POST['checkbox'])){ echo "SET";// udate …

Member Avatar
Member Avatar
+0 forum 9

Well, i went into my profile now and I saw it didn't say newbie poster anymore it said light poster!! so i'm happy. Although i'm not really sure what that stuff means?

Member Avatar
Member Avatar
+0 forum 2

I have a python code that reads a file into a stringio. This works great but now i need to do is http post from the stringio and i can not figure it out. Any help would be greatly appriciated cause this is really conffusing and i dont know what to do. The url is a dummy website but this is my full code maybe someone could help. import requests, shutil, datetime, glob, os, csv,fnmatch, StringIO def convertToSor(fileLoc, fileName, mode, listName): s=StringIO.StringIO() os.chdir(fileLoc) for FILE in glob.glob("SOR935*"): filepresent = os.path.isfile('/home/hatterx/Desktop/Bronto_Files/FACTS_bronto_import_add_'+dt+'.csv') with open(FILE, 'r') as f1: #, open('/home/hatterx/Desktop/Bronto_Files/FACTS_bronto_import_add_'+dt+'.csv', 'ab') as f2, …

Member Avatar
+0 forum 0

i have a contact form. html is done. php is done as well. but the submit button doesnt seem to read my php code. sorry if my coding is too long but i just had to post the whole thing incase i missed something. any help is very much appreciated. html <div class="form-wrapper"> <form method="post" action="add_contact.php" class="add-contact-form"> <fieldset> <legend>Add Contact</legend> <table> Salutation : <select name="salutations"> <option value="" disabled selected>Choose</option> <option value="Datin">Datin</option> <option value="Datin Paduka">Datin Paduka</option> <option value="Dato Paduka">Dato Paduka</option> <option value="Dato'">Dato'</option> <option value="Dato' Seri">Dato' Seri</option> <option value="Datuk">Datuk</option> <option value="Datuk Seri">Datuk Seri</option> <option value="Dr.">Dr.</option> <option value="Haji">Haji</option> <option value="Hajjah">Hajjah</option> <option value="HM">HM</option> <option …

Member Avatar
Member Avatar
+0 forum 1

Ok so I have been searching for several days on how to write a simple python script that will HTTP post to my server. I am jsut looking for some tips on how to write this properly cause as of right now im having to upload my add and update files manually and it would make things easyer to be able to run a python script to do it for me. So any help would be greatly appriciated at this time.

Member Avatar
Member Avatar
+0 forum 5

I'm having issues with repopulating my input fields after being submitted if there is an error. I've tried the simple `<?php if(isset($_POST['value'])){echo $_POST['value'];} ?>` That doesn't work. And I'm thinking it's because of how I have my else statements set up. I am currently using get to repopulate my fields, and it's working but I'm not so sure it's the best practice. Example of original code: (form-check.php) <?php if(isset($_POST['firstname'])) { $firstname = $_POST['firstname']; // do something } else { header("Location: index.php?error=This field is required!"); } ?> (index.php) <form action="form-check.php" method="POST"> <input type="text" name="firstname" value="<?php if(isset($_POST['firstname'])){echo htmlentities($_POST['firstname']);} ?>" /> <input type="submit" …

Member Avatar
Member Avatar
+0 forum 4

Hi, I'm developing a software in C++/Qt5 and I would like to create a button, which when u click on it, a "status" is posted on the user own wall. So I created a facebook app on https://developers.facebook.com/ but I don't know how to configure it. Also I tried to run via my program this cURL command : curl -F 'access_token=XXX' -F 'message=test' http://graph.facebook.com/me/feed and I have this error : {"error":{"message":"An active access token must be used to query information about the current user.","type":"OAuthException","code":2500}} I don't know what it exactly means, but I think it's because the user have to …

Member Avatar
Member Avatar
+0 forum 1

The expected outcome dosent agree with result. Following is the code snippet. int a,c; a=10; c=0; c=(--a)+(--a); printf("C: %d", c); printf("\nValue of a: %d", a); I expected C to be 17 i.e (9+8), but it comes out to be 16. And a becomes 8 as expected. When expression is changed to like this. c=(--a); c=c+(--a); Then it works fine. Someone please point out where is loophole in my knowledge. Thanx.

Member Avatar
Member Avatar
+0 forum 6

Alright so this has been bugging me for a long time now... I have tried everything but I cant get it to work! So what I want to have is a link that acts as a button, and once you click it, it POSTs an ID number of the button in the form "{ 'id' : id }" <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <script> function postID( id ){ $.ajax({ type: "POST", url: "edit-homepage.php", data: { 'id' : id }, success: function(data) { alert("ID: <?PHP echo $_POST['id']; ?>"); } }); } </script> The a href button is created using PHP and I want it …

Member Avatar
Member Avatar
+0 forum 7

Dear all, In my website admin page.post a new property.the details are posted in my facebook fan page wall. I am using PHP SDK. Some times its working fine. Sometimes redirect to my return url it contains code parameter and stopped i am using this code Anyone help me <?php require_once 'src/facebook.php'; // configuration $appid = ''; $appsecret = ''; $pageId = ''; $msg = $_REQUEST['fbtitle']; $title = $_REQUEST['fbtitle']; $uri = $_REQUEST['fburl']; $desc = $_REQUEST['fbsum']; $pic = $_REQUEST['fbimage']; $facebook = new Facebook(array( 'appId' => $appid, 'secret' => $appsecret, 'cookie' => false, )); $user = $facebook->getUser(); // Contact Facebook and get …

Member Avatar
+0 forum 0

**Clearing up php retrieval of form variables** the basics on how to best submit and retrieve form values in php focusing on checkboxes because they seem to be the most diffucult to understand. When posting form data to another page your naming convention makes all the difference in the world in your ease of access and clarity. Your Options simple syntax `name="simple_syntax"` array syntax `name="array_syntax[]"` multi-dimensional arrays `name="multi-dimensional_array_syntax[][]"` **simple syntax** <form name="av" method="post" action="<?php print $_SERVER['PHP_SELF']; ?>"> <p>Simple checkbox <input type="checkbox" name="simple_checkbox_1" value="simple_checkbox_1"/> <input type="checkbox" name="simple_checkbox_2" value="simple_checkbox_2"/> <input type="checkbox" name="simple_checkbox_3" value="simple_checkbox_3"/></p> </form> assuming each checkbox was checked your $_POST should …

Member Avatar
Member Avatar
+6 forum 6

The End.