Other Programming Languages
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreOther Programming Languages

Closed Thread
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 22nd, 2012, 06:28 AM
frozenheart frozenheart is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2012
Posts: 1 frozenheart User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 18 sec
Reputation Power: 0
Other Language - Could Someone Please Tell Me Which Language Should I Use

Hi guys please could you help do this I tried to read about jquery, ajax, json, curl but I just got really lost so I am asking for help to guide me to the right way and thank you so much.

What I want to do is this : take this from in html

<form method="GET" action="(exemple.com/api/work.php">
<input type="hidden" name="method" value="link"/>
<input type="text" name="params[login]" value="ready" />
</br><input type="text" name="params[pass]" value="download"/></br>
<input type="text" size="80" name="params[link]" placeholder="get ready"/></br>
<input type="submit" formtarget="txt" value="Submit">
</form>
And turn it to this

<form>
<input type="text" size="80" name="params[link]" placeholder="get ready"/></br>
<input type="submit" formtarget="txt" value="Submit">
</form>
<iframe type="hidden" name="txt"></iframe>
I want to validate - the the first input with name="method" value="link" -the second input with name="params[login]" value="ready" -the third input with name="params[pass]" value="download" to this url (exemple.com/api/work.php ( This is a different domain "cross domain") with the GET request

The API that I am using is private I talk to them and they told me that I can share it but I don't want to share my username and password but I want to share the possibility to check the url using mine the request should be like this.

exemple.com/...loadlink[login]=USERNAME&params[pass]=PASSWORD&params[link]=LINK
that's how it should be submitted. conclusion

I don't want the visitor the see the url or the 3 inputs they can pnly submit the link they want to check.

Thank you so much I hope someone can guide me to the right way I am so lost now

Reply With Quote
  #2  
Old January 4th, 2013, 11:31 PM
portcitysoftwar portcitysoftwar is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Posts: 163 portcitysoftwar User rank is Sergeant (500 - 2000 Reputation Level)portcitysoftwar User rank is Sergeant (500 - 2000 Reputation Level)portcitysoftwar User rank is Sergeant (500 - 2000 Reputation Level)portcitysoftwar User rank is Sergeant (500 - 2000 Reputation Level)portcitysoftwar User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 13 h 18 m 54 sec
Reputation Power: 17
Please post in appropriate forums. Javascript would be much more suitable of a forum

Reply With Quote
  #3  
Old January 5th, 2013, 04:32 AM
portcitysoftwar portcitysoftwar is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Posts: 163 portcitysoftwar User rank is Sergeant (500 - 2000 Reputation Level)portcitysoftwar User rank is Sergeant (500 - 2000 Reputation Level)portcitysoftwar User rank is Sergeant (500 - 2000 Reputation Level)portcitysoftwar User rank is Sergeant (500 - 2000 Reputation Level)portcitysoftwar User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 13 h 18 m 54 sec
Reputation Power: 17
well just consider what your trying to do. Youneed to request a page from an API while passing a GET variable. However without telling us much about the api i cant really guide you. Most API will reply with XML. Now i am assuming this API came with documentation as well but maybe not.

Now to communicate with api especially if you dont want your user to know your using this api then you need to use a server side language most likely PHP or ASP. I prefer PHP. Now i am assuming the API is responding with an XML document so we will use PHP SimpleXML extension as it is well simple.
PHP Code:
 $USERNAME="";
$PASSWORD="";
$LINK="";
$apiUrl="exemple.com/...loadlink[login]=$USERNAME&params[pass]=$PASSWORD&params[link]=$LINK";
$xml simplexml_load_file($apiUrl); 

This will request and load the url specified to it as a resource loaded into $xml. The simplexml extension can then be used to parse values from this data

Reply With Quote
Closed Thread

Viewing: Dev Shed ForumsProgramming Languages - MoreOther Programming Languages > Other Language - Could Someone Please Tell Me Which Language Should I Use

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap