[Solved] Storing radio button data in a session [closed]

[ad_1] These variables should be stored now in session memory. These will be available on any page a session is started, until overwritten or destroyed, or by browser closing/timing out. You can call them: $somthing = $_SESSION[‘carrier’]; or how ever you need to use them. <input name=”blah” value=”<?php echo $_SESSION[“carrier’];?>’> [ad_2] solved Storing radio button … Read more

[Solved] Use href then execute a PHP function [closed]

[ad_1] You can just link to a php page and pass a request variable. <a href=”https://stackoverflow.com/questions/44533266/myPage.php?someVar=someValue”>Link</a> // myPage.php <?php echo($_REQUEST[‘someVar’]); ?> This will output “someValue” on the new page. 1 [ad_2] solved Use href then execute a PHP function [closed]

[Solved] Check Username or Password Availability Using AJAX on Codeigniter

[ad_1] You passed username from jQuery with username: $(‘#userId’).val() not userId Try following with $this->input->post(‘username’) $username = strtolower(trim($this->input->post(‘username’))); Or change posted data index from jQuery: username to userId userId: $(‘#userId’).val() 0 [ad_2] solved Check Username or Password Availability Using AJAX on Codeigniter

[Solved] How to make PHP BB Codes with RegExp?

[ad_1] The user asked for something simple, so I gave him something simple. $input = “[link=http://www.google.com]test[/link]”; $replacement = preg_replace(‘/\[link=(.*?)\](.*?)\[\/link\]/’, ‘<a href=”https://stackoverflow.com/questions/10458103/”>$2</a>’, $input); Where /\[link=(.*?)\](.*?)\[\/link\]/ is the regex, <a href=”https://stackoverflow.com/questions/10458103/”>$2</a> is the format, $input is the input/data, and $replacement is the return. 1 [ad_2] solved How to make PHP BB Codes with RegExp?

[Solved] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘,,,)’ at line 1 [closed]

[ad_1] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘,,,)’ at line 1 [closed] [ad_2] solved You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax … Read more

[Solved] undefined index errors PHP

[ad_1] Accessing a variable or index that does not exists triggers a notice in PHP, and when your error reporting is on E_ALL, that notice is visible. The problem with putting your input-variables (in this case POST) in another variable is that you are never sure they exist, because they depend on user input. The … Read more

[Solved] How to use php_CURL to acess a website [closed]

[ad_1] function get_web_page( $url ) { $options = array( CURLOPT_RETURNTRANSFER => true, CURLOPT_HEADER => false, CURLOPT_FOLLOWLOCATION => true, ); $ch = curl_init( $url ); curl_setopt_array( $ch, $options ); $content = curl_exec( $ch ); curl_close( $ch ); return $content; } echo get_web_page(“http://www.emirates.com/account/english/miles-calculator/miles-calculator.aspx?org=BOM&dest=JFK&trvc=0&h=7b1dc440b5eecbda143bd8e7b9ef53a27e364b”); 1 [ad_2] solved How to use php_CURL to acess a website [closed]

[Solved] How to prevent website download, so someone can’t download my full website [duplicate]

[ad_1] The Users will be able to download only the views that you populate via php. CodeIgniter is a MVC (Model-View-Controller) framework for a reason, it encapsulates the business logic from what can be accessed by users. http://www.codeigniter.com/user_guide/overview/mvc.html [ad_2] solved How to prevent website download, so someone can’t download my full website [duplicate]

[Solved] I want to create a signin form that takes user interest in the form of tags just like that of the stack overflow (just a general idea)

[ad_1] You can try this : HTML Code: <input type=”text” value=”java,php” data-role=”tagsinput”></input> For CSS, call these two files: <link rel=”stylesheet” href=”https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/css/bootstrap.min.css”> <link rel=”stylesheet” href=”http://bootstrap-tagsinput.github.io/bootstrap-tagsinput/dist/bootstrap-tagsinput.css”> For Javascript, call these two files: <script src=”https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js”></script> <script src=”http://bootstrap-tagsinput.github.io/bootstrap-tagsinput/dist/bootstrap-tagsinput.min.js”></script> The code will generate the result like you want. [ad_2] solved I want to create a signin form that takes user … Read more

[Solved] After all these code still i cannot load csv to mysql [closed]

[ad_1] You’ve got a number of problems in your code, which you should fix before you proceed: Possible SQL injection via the uploaded file – you are not escaping your user inputs. Do a search-engine search for “PHP mysql_real_escape_string” and read what the PHP manual has to say here Using a deprecated database library. If … Read more

[Solved] HTML get value of select popoulated by PHP array

[ad_1] There is a missing ” after the javascript function and your code could be modified a little like this – to use event rather than rely upon names or ids <select name=”category” id=”_category” class=”_cateogry” onchange=”submitTheForm(event)” > <option value=””>Please select</option> <?php foreach ($categories as $contents ) {?> <option value=”<?php echo $contents->id;?>” selected=”selected”><?php echo $contents->name;?></option> <?php … Read more