« first day (730 days earlier)      last day (1698 days later) » 

user142019
9:30 AM
 
1 message moved from Lounge<C++>
 
 
3 hours later…
12:18 PM
@webarto : hi
 
hi why
 
curl_setopt($ch, CURLOPT_POSTFIELDS, $jsonContent);
@webarto : if $jsonContent is static in same file
that work
but If I use dynamic content then dont work
 
It needs to be key/value pair, IIRC.
var_dump($jsonContent);
And show the output, or STFU.
 
$jsonContent = "{\"block_face_line\" : [{\"longitude\" : -71.34345555,\"latitude\" : 42.7794343 },{\"longitude\" : -71.4473179666667,\"latitude\" : 42.7336227666667 }, {\"longitude\" : -71.4461721166667,\"latitude\" : 42.7321493333333 },{\"longitude\" : -71.4473179662267,\"latitude\" : 42.726227666667 } ],\"block_face_curb_side\" : \"LEFT\",\"block_face_collector_id\" : \"1\"}";

// $jsonContent=$_REQUEST['GetDetails'];




$url = 'www.data.php';

$ch = curl_init($url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
 
good :)
 
12:22 PM
can you say what I have to do for that now
 
Yes.
 
see code pls
 
How do you read the JSON data on the other side? Is there some PHP script or something else?
 
using xcode
but if I am test url?GetContent=string
then dont work
 
18 messages moved from PHP
 
12:34 PM
I posted code here
but some one move
question is simple
@w
@webarto : $ch = curl_init($url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
curl_setopt($ch, CURLOPT_USERPWD, "parkme:parkme");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_POSTFIELDS, $jsonContent);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT,1*60);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_HTTPPOST, TRUE);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/json'
when $jsonContent=" dsdfsdf " is in same file working
 
6 messages moved from PHP
 
 
5 hours later…
5:10 PM
<script language="javascript" type="text/javascript">
function change6(v){
if(v==56){
document.getElementById('noneTable6').style.display='block';
document.getElementById('type_6').style.display='none';
}else{
document.getElementById('noneTable6').style.display='none';
document.getElementById('type_6').style.display='block';
}
}
</script>
<div id="type_6"><select style="width:180px;float:left" name="type" id="type" onchange="change6(this.value)">
<option value="">None</option>
<?
$type = $queries->getS9Type('SustainableVillagesProject_Social');
this is giving me a drop down...i want to have another dropdown..when the user clicks option value 48
which have another two values to choose
this is my task
The drop down menu for “Projects Undertaken” should be:
Infrastructure Development (if chosen, then should have another drop down menu with):
- Educational Infrastructure
- Health Care Infrastructure
- Other Infrastructure
Education
Health Care
Clean Water
Hygiene
Sanitation
Micro-finance
Alternative Energy
Economic Opportunity Development
Other (user must have to write in response if they choose “Other”)
 
5 messages moved from PHP
 

« first day (730 days earlier)      last day (1698 days later) »