Jump to content

security code image is not showing in php website signup form


Abubakar

Recommended Posts

I have a php based website www.hosting.moviestvslinks.com and signup form Security Code Image is not showing in signup form of this website. please hep me to solve this issue. my signup.php is as under.

<?
include('geturl.php');
?>

<script type="text/javascript">

function ismaxlength(obj){
var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : ""
if (obj.getAttribute && obj.value.length>mlength)
obj.value=obj.value.substring(0,mlength)
}

</script>

<?PHP
$id = md5(rand(6000,99999999999999991000));
?>

<td style="text-align: left;" colspan="21">
<font size="-1"><span style="font-family: Helvetica,Arial,sans-serif;">
<form method=post action="http://order.<?php echo $yourdomain?>/register2.php">
<table>
<tr><th style="text-align: left;">Username<td><input type=text name=username size=30 value=""  maxlength="16" onkeyup="return ismaxlength(this)">
<tr><th> <td> 
<tr><th style="text-align: left;">Password<td><input type=password name=password size=30 maxlength="25" onkeyup="return ismaxlength(this)">
<tr><th> <td> 
<tr><th style="text-align: left;">Email Address<td><input type=text name=email size=30 value="">
<tr><th style="text-align: left;"><td>
<tr><th> <td>
<tr><th style="text-align: left;">Auto-Install Script<td>
<select size="1" name="script">
                                    <optgroup label="No script">
                                       <option value="" selected="selected">Do not install a script</option>
                                    </optgroup>
                                    <optgroup label="Blog / CMS">
                                       <option value="wordpress">WordPress Blog</option>
                                       <option value="joomla">Joomla! CMS</option>
                                       <option value="drupal">Drupal CMS</option>
                                       <option value="bigace">BigAce CMS</option>
                                       <option value="nucleus">Nucleus CMS</option>
                                       <option value="typo3">Typo3 CMS</option>
                                       <option value="b2evolution">B2Evolution Blog & CMS</option>
                                       <option value="geeklog">GeekLog CMS</option>
                                       <option value="kajona">Kajona CMS</option>
                                       <option value="concrete5">Concrete5 CMS</option>
                                       <option value="pivot">Pivot Blog & CMS</option>
                                       <option value="textpattern">TextPattern CMS</option>
                                       <option value="tikiwikigroup">Tiki Wiki CMS Groupware</option>
                                       <option value="modxrevo">MODX Revolution CMS</option>
                                       <option value="pligg">Pligg CMS</option>
                                    </optgroup>
                                    <optgroup label="Forum">
                                       <option value="phpbb">phpBB Forum</option>
                                       <option value="mybb">MyBB Forum</option>
                                       <option value="vanilla">Vanilla Forum</option>
                                    </optgroup>
                                    <optgroup label="E-Commerce">
                                       <option value="opencart">OpenCart E-commerce Shop</option>
                                       <option value="oscommerce">OsCommerce E-commerce Shop</option>
                                       <option value="zencart">ZebCart E-commerce Shop</option>
                                       <option value="hhgmultistore">HHG MultiStore E-commerce Shop</option>
                                       <option value="cubecart">CubeCard E-commerce Shop</option>
                                    </optgroup>
                                    <optgroup label="Others">
                                        <option value="webauction">Web Auction</option>
                                        <option value="faqmaster">FAQ Master</option>
                                    </optgroup>
                                 </select></td>
<tr><th> <td>
<tr><th style="text-align: left;">Site Category<td><select size="1" name="website_category">
<option>Personal</option>
<option>Business</option>
<option>Hobby</option>
<option>Forum</option>
<option>Adult</option>
<option>Dating</option>
<option>Software / Download</option>
</select>
</td>
<tr><th style="text-align: left;"><td>
<tr><th> <td>
<tr><th style="text-align: left;">Site Language<td>
<select size="1" name="website_language">
<option>English</option>
<option>Non-English</option>
</select>
</td>
<tr><th> <td> 
<input type=hidden name=id value="<?PHP echo $id; ?>">
<tr><th style="text-align: left;">Security Code<td><img src="http://order.<?php echo $yourdomain?>/image.php?id=<?PHP echo $id; ?>">
<tr><th> <td> 
<tr><th style="text-align: left;">Enter Security Code<td><input type=text name=number size=30>
<tr><th> <td> 
<tr><th colspan=2><input type=submit value="Register" name=submit>
</table>
</form>
</span>
<br style="font-family: Helvetica,Arial,sans-serif;">
</font>
<br style="font-family: Helvetica,Arial,sans-serif;">
</span></font>
<font size="-1"><span style="font-family: Helvetica,Arial,sans-serif;">By signing up for <? echo "$yourdomain" ;?> free hosting, you accept and agree to our <a href="terms.php">Terms of Service</a></span></font>

</td>

This is the Whole Signup.php file.  and original signup.php is also attached.

Regards. 
Abubakar Sattar

signup.php

Link to comment
Share on other sites

Actually my original domain is http://www.moviestvslinks.com and i make a Subdomain named http://www.hosting.moviestvslinks.com/ the problem is in http://www.hosting.moviestvslinks.com/free-hosting-signup.php page. Actually i transfer this website from main domain to Subdomain.  I searched all files in Dir but did't find the image named Security Code or like this. I also shifted back whole this website to main Domain but the Problem was same. I do not have any webpage named order. in whole website.

i am also posting the Geturl.php below.

<?  
    $yourdomain = $_SERVER['HTTP_HOST'];
    $yourdomain = preg_replace('/^www\./' , '' , $yourdomain);
    $yourdomain = ucfirst($yourdomain);
?>

I am not expert in web design. so please guide me to solve this issue.

Link to comment
Share on other sites

Okay, so those links you posted still don't work. It looks like this link has the form you are referring to:

 

http://hosting.moviestvslinks.com/free-hosting-signup.php

 

I see an invalid image in the form.

 

The request url of the image is http://order.hosting.moviestvslinks.com/image.php?id=d045c59a90d7587d8d671b5f5aec4e7c

 

And the response code is 200 and it's giving a text/html type response. If I go directly there, I just get some kind of ad page..looks like an automatic response by your host for a subdomain that doesn't actually exist. However, if I go here:

 

http://hosting.moviestvslinks.com/image.php?id=d045c59a90d7587d8d671b5f5aec4e7c

 

I get a text dump that looks like this:

‰PNG  IHDRdƒ`ϹXIDATX…íYklTEþænKyTÄP1"P%ËcU¨H€¨<„VÐMI¨1¢ŒE1Dþ¢‘ÿ€(šB#–Ä*Z¨)j„Ôi(¢…b$¤jËÞ™9dz;½;û ¥ 1áËdwîÌwÎ7çܹçÞ»+˜×Ð9xÿõþOÈ1_5M-LàÖ”Oç†<©ÒÛ¿¿èfŸ6ÎDÈg"3Üýþ@Ñ@Ÿ5ý欇 I·—¡˜'b3G…Mˆ[ZU»¸(T‘§¡$‹iÜ·7€¹#Ø~ì4€“­m™ÈÝÄ¿©•I1–HEŽžÐ|¾Í)|]¹_ˆÌd‘¢%šÏ·¡ã"²Wœ‘¬k¸E™8 ñdÚ•k¿ØÚ'/¿ÕoÍÍé©SvVQÿ¾Y6f€ê#'à¡é\kFéî!³%(έ‰ºy³Ê¢˜ççN"Y*$Ûàåä¶ý©¼=Û}áÙrf|ä«æ/°õீ×tö/$s,–—Dœ‘Wj£Yf6Õ @UÃ/V+H°ÓZ9r—Döèäuñ3?Ž)(’ð=òdn»'= ;ê¦ë‰éáâa>h8àèï.¹‚??h:+æŒ_^	šYS>^ž=nyI䥇Ìì–ï~`´„åÅCÍÔ˳ÇY+cbšO!„):ƹ¯dÚ%¥-Xá}èÏt\1Ì“q«øÖeb)eL*é+©•’$ߘϤ¯-š@m9§ÉP*~ýZÂÛ÷›0”R&˜¶ïWJù¾/¥4³R&£ĺ7RJ“)ceMVÌoä‚kp¤Å ÂùIŠDÑ–sn8NÍb&)5ä”V`á1€ÛõgÂ#‹¼ÿm€C§Î¦=i©R›ÎʲI–Uï³#¦cïMÁ©‡'Œ°Z–¼¬zßʲI¯Î½sYõ¾ C¥l	K/äÀ¹Þ>¨?£ûþÔ¹T+"”,­IúÄ$˜5‘)КL	`óÞcš;›)»tƒ¥Ußø²#°@?~ÒŠ‡˜Žs¥XÃ¥U߬)Ÿb}:…¯ÍŸœ:žŠŒŽÈÙYD1_‘"ò”àIà HÓãw…¼óu#€o>“u.¿û¥é¬ìž5åSì!?¦(4‡ íFhø†iœØÁT‡vÖòÓÂQìdt¤ãÉ Ö,­$bRKŸ&h ãkãžF­ñUãï1É1ɾ‚Ó̸m~bµ–°pcóVïúð¹YUKJ«³ëjÛ'éó%=e«j«Ÿ/Ùúì}f°lU­ôƒZF)¸7r‹”¼xÖ˜Ñe|¥M<!^ð6ÔE &T”ŽðVý!%v4œÈdßMÌ.`ÑÌ€ÊÝQŽVö×ÝYqú¸¢%%£Ñ±³+FEiÀÛ;£ðÄG '3½Ítsƹ¨±¤t,€µ5‡ñùÁ櫤uECœüº#¥X\°~W”¶ïk"/ÝÏ]¹Óbî„¡?SðfMTŸìïÖþ5rYÖÐ}Eäše2õúŽhnˆ«öÏ!Öé_¯ºƒy“G\Qr+€ µ?†>Ü{슫\qE‘xtöœlÚý}L‰‹v9ÂËþ|™xú¾Û¬ÛùÃÕp~õqíßÎãÚ¿;]À?ùèú óíIEND®B`‚
So a couple of things here: firstly is that it looks like you aren't pointing to the right (sub)domain for your image. 2nd, it looks like your image.php script is not properly outputting image content-type header before it outputs the image source code.

 

At the end of your image.php, it should look something like this:

 

header('Content-type: image/png'); // <-- my guess is this is missing
imagepng($im);
Link to comment
Share on other sites

Okay, so those links you posted still don't work. It looks like this link has the form you are referring to:

 

http://hosting.moviestvslinks.com/free-hosting-signup.php

 

I see an invalid image in the form.

 

The request url of the image is http://order.hosting.moviestvslinks.com/image.php?id=d045c59a90d7587d8d671b5f5aec4e7c

 

And the response code is 200 and it's giving a text/html type response. If I go directly there, I just get some kind of ad page..looks like an automatic response by your host for a subdomain that doesn't actually exist. However, if I go here:

 

http://hosting.moviestvslinks.com/image.php?id=d045c59a90d7587d8d671b5f5aec4e7c

 

I get a text dump that looks like this:

‰PNG  IHDRdƒ`ϹXIDATX…íYklTEþænKyTÄP1"P%ËcU¨H€¨<„VÐMI¨1¢ŒE1Dþ¢‘ÿ€(šB#–Ä*Z¨)j„Ôi(¢…b$¤jËÞ™9dz;½;û ¥ 1áËdwîÌwÎ7çܹçÞ»+˜×Ð9xÿõþOÈ1_5M-LàÖ”Oç†<©ÒÛ¿¿èfŸ6ÎDÈg"3Üýþ@Ñ@Ÿ5ý欇 I·—¡˜'b3G…Mˆ[ZU»¸(T‘§¡$‹iÜ·7€¹#Ø~ì4€“­m™ÈÝÄ¿©•I1–HEŽžÐ|¾Í)|]¹_ˆÌd‘¢%šÏ·¡ã"²Wœ‘¬k¸E™8 ñdÚ•k¿ØÚ'/¿ÕoÍÍé©SvVQÿ¾Y6f€ê#'à¡é\kFéî!³%(έ‰ºy³Ê¢˜ççN"Y*$Ûàåä¶ý©¼=Û}áÙrf|ä«æ/°õீ×tö/$s,–—Dœ‘Wj£Yf6Õ @UÃ/V+H°ÓZ9r—Döèäuñ3?Ž)(’ð=òdn»'= ;ê¦ë‰éáâa>h8àèï.¹‚??h:+æŒ_^	šYS>^ž=nyI䥇Ìì–ï~`´„åÅCÍÔ˳ÇY+cbšO!„):ƹ¯dÚ%¥-Xá}èÏt\1Ì“q«øÖeb)eL*é+©•’$ߘϤ¯-š@m9§ÉP*~ýZÂÛ÷›0”R&˜¶ïWJù¾/¥4³R&£ĺ7RJ“)ceMVÌoä‚kp¤Å ÂùIŠDÑ–sn8NÍb&)5ä”V`á1€ÛõgÂ#‹¼ÿm€C§Î¦=i©R›ÎʲI–Uï³#¦cïMÁ©‡'Œ°Z–¼¬zßʲI¯Î½sYõ¾ C¥l	K/äÀ¹Þ>¨?£ûþÔ¹T+"”,­IúÄ$˜5‘)КL	`óÞcš;›)»tƒ¥Ußø²#°@?~ÒŠ‡˜Žs¥XÃ¥U߬)Ÿb}:…¯ÍŸœ:žŠŒŽÈÙYD1_‘"ò”àIà HÓãw…¼óu#€o>“u.¿û¥é¬ìž5åSì!?¦(4‡ íFhø†iœØÁT‡vÖòÓÂQìdt¤ãÉ Ö,­$bRKŸ&h ãkãžF­ñUãï1É1ɾ‚Ó̸m~bµ–°pcóVïúð¹YUKJ«³ëjÛ'éó%=e«j«Ÿ/Ùúì}f°lU­ôƒZF)¸7r‹”¼xÖ˜Ñe|¥M<!^ð6ÔE &T”ŽðVý!%v4œÈdßMÌ.`ÑÌ€ÊÝQŽVö×ÝYqú¸¢%%£Ñ±³+FEiÀÛ;£ðÄG '3½Ítsƹ¨±¤t,€µ5‡ñùÁ櫤uECœüº#¥X\°~W”¶ïk"/ÝÏ]¹Óbî„¡?SðfMTŸìïÖþ5rYÖÐ}Eäše2õúŽhnˆ«öÏ!Öé_¯ºƒy“G\Qr+€ µ?†>Ü{슫\qE‘xtöœlÚý}L‰‹v9ÂËþ|™xú¾Û¬ÛùÃÕp~õqíßÎãÚ¿;]À?ùèú óíIEND®B`‚
So a couple of things here: firstly is that it looks like you aren't pointing to the right (sub)domain for your image. 2nd, it looks like your image.php script is not properly outputting image content-type header before it outputs the image source code.

 

At the end of your image.php, it should look something like this:

 

header('Content-type: image/png'); // <-- my guess is this is missing
imagepng($im);

Actually you are missing www because my subdomain is working with www.  http://www.hosting.moviestvslinks.com/free-hosting-signup.php  please check this. and one more thing image.php is exist in my directory. i was uploaded this image.php file you just looked and this was not working. once i used the path of this file in signup.php then image code shows but when submit it says invalid. now i deleted this file.

Edited by Abubakar
Link to comment
Share on other sites

Are you actually going to the links you are posting?

 

http://www.hosting.moviestvslinks.com/free-hosting-signup.php
That link right there does not show me anything. I get a "website not available" message.

 

This link:

http://hosting.moviestvslinks.com/free-hosting-signup.php
Shows me a form "Complete the registration form below to apply for free hosting, accounts are activated instantly" and a "Security Code" field with a broken image, which sounds like your issue.
Link to comment
Share on other sites

Are you actually going to the links you are posting?

 

http://www.hosting.moviestvslinks.com/free-hosting-signup.php
That link right there does not show me anything. I get a "website not available" message.

 

This link:

http://hosting.moviestvslinks.com/free-hosting-signup.php
Shows me a form "Complete the registration form below to apply for free hosting, accounts are activated instantly" and a "Security Code" field with a broken image, which sounds like your issue.

 

yes you are right broken image is my issue..

Link to comment
Share on other sites

well yes, broken image is your issue, just like you stated. And I'm trying to tell you why it's broken, but you keep pointing me to urls that don't actually work. So I have found urls that DO work and have pointed out some reasons why you are getting a broken image.

I attached complete Signup.php file in the start of this forum, I believe something wrong in this file or may be the missing image.php. If you are not understanding the actual issue then guide me to replace the Security Code image method or replace the whole Signup Form. 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.