Search found 8 matches

by paintitblack
Wed Feb 19, 2014 10:25 pm
Forum: PHP coding => General
Topic: $_GET[] after a #fragment ?
Replies: 2
Views: 512

Re: $_GET[] after a #fragment ?

I've just tested this on one of my shared hosting account (Linux), and it works fine:

Code: Select all

<?php
$param = $_GET['t'];
echo "The parameter value is: " . $param;
?>
I'm running this PHP code as follows:

Code: Select all

http://mydomain.com/phpcode.php?t=test
by paintitblack
Tue Feb 18, 2014 11:32 pm
Forum: PHP coding => General
Topic: $_GET[] after a #fragment ?
Replies: 2
Views: 512

Re: $_GET[] after a #fragment ?

In its simplest form, this is what you need:

Code: Select all

$q = $HTTP_GET_VARS['q'] ;
by paintitblack
Tue Feb 18, 2014 3:16 pm
Forum: PHP coding => General
Topic: PHP URL Encoding Question
Replies: 3
Views: 498

Re: PHP URL Encoding Question

Thanks, but I'm still not seeing an option to generate the format I need.
by paintitblack
Mon Feb 17, 2014 9:26 pm
Forum: PHP coding => General
Topic: regex problem
Replies: 1
Views: 737

Re: regex problem

This should do it:

Code: Select all

^[a-zA-Z][a-zA-Z0-9_]*[a-zA-Z]$
Note that this requires your data field to be at least two characters long.
by paintitblack
Mon Feb 17, 2014 9:11 pm
Forum: PHP coding => General
Topic: it should be simple php-code
Replies: 0
Views: 644

Re: it should be simple php-code

You are not specifying the send from email address, which is usually part of the email headers in the fourth parameter.
by paintitblack
Mon Feb 17, 2014 9:09 pm
Forum: PHP coding => General
Topic: Problem with dropdown value
Replies: 0
Views: 574

Re: Problem with dropdown value

You say you're using the post method, but your form actually specifies get, so that's probably your problem.
by paintitblack
Mon Feb 17, 2014 9:03 pm
Forum: PHP coding => General
Topic: Problem with UPDATE query
Replies: 0
Views: 418

Re: Problem with UPDATE query

Your HTML form is using Post, but in your MySQL Update statement, you're using $_GET.

Should this use $_POST, like your Insert statement does?
by paintitblack
Mon Feb 17, 2014 8:56 pm
Forum: PHP coding => General
Topic: PHP URL Encoding Question
Replies: 3
Views: 498

PHP URL Encoding Question

I need to convert this:

Code: Select all

/page-name/?q=search+term
to this for use in an HTML form field:

Code: Select all

&#047;page&#045;name&#047;?q&#061;search&#043term
However, I can't find which PHP function does this particular conversion/encoding.

Any ideas?

Thanks!