I am using link field module to create a url field for a custom content type. My field name is 'field_my_url' and users can submit a url through this field. Now i am trying to make a custom module to check if the user submitted url is already present in the database or not. I am using uniquefield module and username_ajax_check modules as reference for my custom module development. For checking the url value of a link field, what format should i use? For example, if i want to check for the title field, i can use

 $title = $_GET['title'];

So for my url field, is it the correct format to use-

$f = $_GET[$field['field_name']]; // where $field is used to represent any url field of a given content type.

or $f = $_GET[$field['url']];

or $f = $_GEt[$field['field_name']['url']];

or any other format is required???

Any help in this regard will be much appreciated.
Thanks in advance!!

Comments

aac’s picture

The javascript part of this issue is here-
http://groups.drupal.org/node/134429#comment-465119
I am not able to understand whether this is an issue of javascript or .module file.
Should i use some urlencode/decode function in javaScript file or in .module file to make this url value go into the sql query in the database. As my sql query is working fine if i check it through phpmyadmin.
Thanks for any help!!

aac’s picture

Issue tags: +coding

Is there nobody to help me???

hellomobe’s picture

Don't know if you still need help with this, but here's one solution - http://drupal.org/node/1399360

renatog’s picture

Issue summary: View changes
Status: Active » Reviewed & tested by the community

Hi guys.

I check and sounds good hellomobe's solution.

Thank you for help

renatog’s picture

Status: Reviewed & tested by the community » Fixed

Any question about it please comment here okay?!

Best,

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.