Search found 140 matches

by rupali
Tue Jul 23, 2013 5:08 pm
Forum: PHP coding => General
Topic: Undefined index:
Replies: 1
Views: 821

Re: Undefined index:

Hi, Use isset() at the first line of php code like this and assign the name to submit button : <form name="form1" method="post"> <input type="text" name="name"> <input type="submit" value="login" name="submit"> </form> <?php if(isset($_POST['submit'])) { $name = strtolower($_POST['name']); if ($name...
by rupali
Sun Dec 02, 2012 2:41 pm
Forum: PHP General
Topic: How to create Left and right side banner?
Replies: 0
Views: 959

Re: How to create Left and right side banner?

Hello,

Its a background image that is fixed when scrolling the page, so you can also use background image with position fixed in your css file.

Regards
Rupali
by rupali
Thu Jul 26, 2012 7:28 am
Forum: PHP coding => General
Topic: Notice: Undefined index
Replies: 4
Views: 980

Re: Notice: Undefined index

hi, Declaration of all variables twice is not the correct method, so the easiest way is to declare only once, for example the code should be like this : in html form, include the name of submit button, <input type="submit" name="submit" value="Submit"> <?php if(isset($_POST['submit'])) // name of su...
by rupali
Mon Jul 09, 2012 11:34 pm
Forum: mySQL & php coding
Topic: Issues updating MySQL value
Replies: 2
Views: 968

Re: Issues updating MySQL value

hi,

there is an issue in the query as the description field is in text form so in query use '' to declare text variable,
code should be like this:

mysql_query("UPDATE users SET description='$text' WHERE user_id=$userid");
by rupali
Sat Jun 30, 2012 6:57 pm
Forum: PHP coding => General
Topic: A problem with img's src attribute
Replies: 1
Views: 441

Re: A problem with img's src attribute

hello,

the code is correct, may be there is some issue with the image location.
so, if only the image name is stored in the database, then the code should be like this:
echo "<td><img src=pictures/subfolderI/'".$red['picture_path']."' alt='image' width='150px' height='150px'/></td>";
by rupali
Sat Jun 30, 2012 6:02 pm
Forum: PHP coding => General
Topic: Opening of a new tab
Replies: 1
Views: 402

Re: Opening of a new tab

hello,

for this you can use target=_blank
for example , if you want to open google in a new tab then your code should be
<a href="http://www.google.co.in" target="_blank">Google</a>
by rupali
Thu Jun 21, 2012 5:54 pm
Forum: PHP coding => General
Topic: PHP Redirect to variable from URL
Replies: 3
Views: 6753

Re: PHP Redirect to variable from URL

my pleasure nevodj :)
by rupali
Thu Jun 21, 2012 5:45 pm
Forum: PHP coding => General
Topic: PHP Redirect to variable from URL
Replies: 3
Views: 6753

Re: PHP Redirect to variable from URL

hello,

semi-colon(;) is missing at the end of this line,

$headerloc = $_GET["redir"]
by rupali
Fri Jun 08, 2012 9:18 pm
Forum: PHP Scripts
Topic: PHP FORM SUBMISSION WITHOUT SUBMIT BUTTON
Replies: 1
Views: 1340

Re: PHP FORM SUBMISSION WITHOUT SUBMIT BUTTON

hello, you can refer this script, hope it works for you : <script type="text/javascript"> function submitform() { document.forms["myform"].submit(); } </script> <!-- give the path where you want to redirect the page and set the method attribute according to that --> <form id="myform" action=""> Text...
by rupali
Sat Jun 02, 2012 6:00 pm
Forum: PHP coding => General
Topic: help needed please I need to run IF statement from MySQL
Replies: 2
Views: 426

Re: help needed please I need to run IF statement from MySQL

Hello, you have used the incorrect method to fetch data from the database; as in this mysql_query the result always obtained in the form of array thats why you are getting Resource Id as an output. To execute this code, apply this way as : <?php $con = mysql_connect("IP.IP.IP.IP","database","passwor...
by rupali
Sat Jun 02, 2012 5:37 pm
Forum: PHP coding => General
Topic: Parse error: syntax error, unexpected ';'/ XXX on line XX
Replies: 0
Views: 347

Re: Parse error: syntax error, unexpected ';'/ XXX on line X

hello,

semicolon ";" is missing at the end of last echo statement instead of "."
by rupali
Wed May 30, 2012 5:27 pm
Forum: PHP coding => General
Topic: Notice: Undefined index: message in C:\wamp\www\sautems\inde
Replies: 0
Views: 320

Re: Notice: Undefined index: message in C:\wamp\www\sautems\

hello, In the form the method is post and the value of message using with get, so try to use the same whether it is post or get. and in the code try this way, then this notice will not appear <tr> <?php if(isset($_POST['Submit2'])) // if you are using method="post" in form { echo ""; } ?> </tr>
by rupali
Fri May 25, 2012 5:14 pm
Forum: PHP coding => Mail
Topic: Pb Link <form> variables in index.html with mail.php ?
Replies: 14
Views: 3454

Re: Pb Link <form> variables in index.html with mail.php ?

Thanks ladygaga627 :)

Have a nice Weekend !!!
by rupali
Wed Apr 04, 2012 5:54 pm
Forum: PHP coding => General
Topic: extracting a number from an html page
Replies: 0
Views: 366

Re: extracting a number from an html page

hello,

in viewalbum.aspx file, just add these lines anywhere(where you want to display) in php tag

<?php
$ref_id = $_GET['realid'];
echo $ref_id; //for printing on browser
?>
by rupali
Sat Mar 31, 2012 5:55 pm
Forum: PHP coding => Mail
Topic: Pb Link <form> variables in index.html with mail.php ?
Replies: 14
Views: 3454

Re: Pb Link <form> variables in index.html with mail.php ?

Hello Toto,

my pleasure !!! :)
Have a superb weekend !!!
by rupali
Fri Mar 30, 2012 10:14 pm
Forum: PHP coding => Mail
Topic: Pb Link <form> variables in index.html with mail.php ?
Replies: 14
Views: 3454

Re: Pb Link <form> variables in index.html with mail.php ?

Hello Toto,

Please Check the attachment
Hope it works !!!
by rupali
Fri Mar 30, 2012 1:24 am
Forum: PHP coding => Mail
Topic: Pb Link <form> variables in index.html with mail.php ?
Replies: 14
Views: 3454

Re: Pb Link <form> variables in index.html with mail.php ?

hello,

you have missed if statement in the beginning, please check it once
it should be like this as
if(!$mail->Send())
{
// php code
}
by rupali
Mon Mar 12, 2012 6:44 pm
Forum: PHP coding => General
Topic: php send mail help
Replies: 0
Views: 329

Re: php send mail help

hi, this is the simple code in php to send email : <form method="post" action="contact.php" > <table style="list-style-type: none;margin: 0; padding: 5px;"> <tr> <td>From : </td> <td> <input type="text" class="myinputstyle" name="from" /><br /> </td> </tr> <tr> <td>Subject : </td> <td> <input type="...
by rupali
Fri Mar 09, 2012 6:37 pm
Forum: mySQL & php coding
Topic: $_GET issue
Replies: 2
Views: 452

Re: $_GET issue

hello,

please attach the database that you have used in this script
by rupali
Fri Mar 09, 2012 6:35 pm
Forum: PHP coding => Mail
Topic: Display users email in from field
Replies: 0
Views: 923

Re: Display users email in from field

hello, you have missed the header section in the mail function, where we can mention the sender's email id so add these lines to your code : $headers = 'From: <sender's email id>' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); and also mention this variable in the mail function as : mail($MAIL_TO, $sub...
by rupali
Mon Feb 27, 2012 6:30 pm
Forum: PHP coding => Mail
Topic: trying to send email but getting unexpected t_variable
Replies: 1
Views: 1054

Re: trying to send email but getting unexpected t_variable

hello,

There is no error !!!

i have tested your script on my system as well and no error in that line, the syntax of if statement is not correct may be because of that, this is not executing, you have missed the else statement after two else if's.
by rupali
Sun Feb 26, 2012 6:55 pm
Forum: PHP coding => Mail
Topic: trying to send email but getting unexpected t_variable
Replies: 1
Views: 1054

Re: trying to send email but getting unexpected t_variable

hello,

in mail function the name of variables are not correct you have missed underscore in to and subject variables, so correct with the below one :
mail($email_to, $email_subject, $email_message, $headers);
by rupali
Sun Feb 12, 2012 10:33 pm
Forum: PHP coding => General
Topic: Layman's terms explanation of sidebar code?
Replies: 3
Views: 587

Re: Layman's terms explanation of sidebar code?

my pleasure rhender :)

Wonderful to know !!!
Have a nice day
by rupali
Fri Feb 10, 2012 11:27 pm
Forum: PHP coding => General
Topic: Layman's terms explanation of sidebar code?
Replies: 3
Views: 587

Re: Layman's terms explanation of sidebar code?

hello,

this code is of CMS : Wordpress
<?php if (!dynamic_sidebar('Right Sidebar')) : ?>

meaning is that the 'Right Sidebar' here is a name of widget that we created our own, the condition says that if it is not existing then the message display (whatever is mentioned in the if block).
by rupali
Wed Feb 08, 2012 10:51 pm
Forum: PHP coding => Mail
Topic: what does the action part mean in the form?
Replies: 3
Views: 1141

Re: what does the action part mean in the form?

my pleasure rhender :)

yes, both the meanings are same