Closed (fixed)
Project:
Link
Version:
6.x-2.9
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Apr 2011 at 11:22 UTC
Updated:
14 Mar 2018 at 23:09 UTC
Jump to comment: Most recent
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
Comment #1
aac commentedThe 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!!
Comment #2
aac commentedIs there nobody to help me???
Comment #3
hellomobe commentedDon't know if you still need help with this, but here's one solution - http://drupal.org/node/1399360
Comment #4
renatog commentedHi guys.
I check and sounds good hellomobe's solution.
Thank you for help
Comment #5
renatog commentedAny question about it please comment here okay?!
Best,