PHP Question

I'm new to PHP and in the process of converting my ASP code. In the ASP code I have a lot of lines such as <%=[url removed, login to view]("my_variable")%> my_variable may or may not have been posted. If it hasn't, then in ASP it just returns an empty string which is what I want. However, in PHP when I do something like: if ($HTTP_POST_VARS['my_variable']!='') I get: Notice: Undefined index: my_variable if the value hasn't been posted. So all I need is a small function that I can pass the name of the variable (e.g. my_variable in this case) and it will return the value if it exists, or an empty string if it does not. Since the finished script will be distributed to others, I don't want to have to make changes to any of the PHP ini files, and it should work on all reasonably versions of PHP. Ideally I'm looking for a PHP expert who I can post additional private bids for if I encounter more questions.

## Deliverables

1) Complete and fully-functional working script. 2) Complete ownership and distribution copyrights to all work purchased.

## Platform


Compétences : Ingénierie, MySQL, PHP, Architecture Logicielle, Tests de Logiciels

en voir plus : any question, small php script variable, php post value, php value post, undefined variable, value engineering, distributed platform, php expert code, small function php, question form php, notice undefined index name, php expert process form, converting script, php post asp, undefined code, script php notice, php value php, index files php, php notice script, post files php

Concernant l'employeur :
( 165 commentaires ) Tampa, United States

Nº du projet : #2942851

Décerné à:


See private message.

%selectedBids___i_sum_sub_7% %project_currencyDetails_sign_sub_8% USD en 14 jours
(74 Commentaires)