Jump to content

cfemocha

Members
  • Posts

    19
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

cfemocha's Achievements

Member

Member (2/5)

0

Reputation

  1. Im trying to use an iframe to upload files. Im copying every input fields from a real form to a form inside a hidden iframe, all fields worked fine except the files that is to be uploaded. Below is part of my code [code] for (var i=0 ; i < oForm.elements.length; i++) { var oHidden = oIFrame.document.createElement("input");     oHidden.type = "hidden";     oHidden.name = oForm.elements[i].name;     oHidden.value = oForm.elements[i].value;     oHiddenForm.appendChild(oHidden); } oHiddenForm.encoding = "multipart/form-data";  oHiddenForm.action = oForm.action; oHiddenForm.submit(); [/code] Ive tried everything i could and still couldnt get it to work. Please help.
  2. Im trying to write the below code using javascript [code] <form method="post" enctype="multipart/form-data" action="test.php"> <input type="File" name="filename" id="filename"> <input type="Submit" name="action2" value="Submit"> </form> [/code] Below is a snipet of my javascript [code] var oHiddenForm = oIFrame.document.forms[0]; for (var i=0 ; i < oForm.elements.length; i++) {  --- code ---     oHidden.value = oForm.elements[i].value;     oHiddenForm.appendChild(oHidden); } oHiddenForm.encoding = "multipart/form-data"; oHiddenForm.action = oForm.action; oHiddenForm.submit(); [/code] all other form input values seemed to work fine, except the file that im uploading. Im guessing [b]oHiddenForm.encoding = "multipart/form-data";[/b]  is causing the prob, I've tried everything and still can't figure it out. Please help!
  3. [quote author=brown2005 link=topic=110587.msg447229#msg447229 date=1160063360] use sessions or cookies.. [/quote] Im using sessions on the signin page (i.e. $userid = $_SESSION['user_id']; ) and my link is like <a href="newwindow.html">new window</a> but $_SESSION['user_id'] does not seem to have been passed to the new window. Am I missing something here? Any help is appreciated. Thank you.
  4. I have a page that needs user to log in to see the contents. Inside the content there is a link which will open up in a new window. What do I need to do so the new window will recognize the user has already signed in? And how do I pass member datas pulled out from the database to the new window without using the get method (i.e. showing it in the url) ?
  5. Im writing a registration form that will need user's confirmation by clicking on an email link. My question is, what attribute should i put in the link? Im thinking of generating a validation key so it matches the one in the database when user clicks on the link. Is that the right way to do?
  6. I have 2 select boxes and have them dynamically populated based on the selectbox selections. example: if i select 'fruit' then the 2nd select boxes will be populated with a list of fruits, if i select 'vegetable' then the 2nd select boxes will be populated with a list of vegetables. these values are coming from a database table and not a predefined array. Can this be done and how? any help is appreciated.
  7. Im trying to write a security image generator script for a registration form and I first wanted to test if GD library works. I learnt that GD library comes with php 4.3, but when I tried phpinfo() GD setting is nowhere to be found. Below are what I've tried so far: [list] [*]Execute “php –m” and “GD” module is found [*]Uncomment the line extension=php_gd2.dll in php.ini [*]Ensure that php_gd2.dll is in c:\php\extension directory. [/list] I tried the script below [code] <?php $image = ImageCreate(200,150); ?> [/code] and got this error msg:   Fatal error:  Call to undefined function:  imagecreate() I really don't know what else to try, please help!
  8. is there a way to send sms (short mobile message) via http? Like the function mail() but instead of sending emails, its sending text messages to mobile/cellphones? Thanx in advance. Any help is appreciated.
  9. thank you for your reply. Im still configuring the code downloaded from the link you suggested .. dont seem to work so far tho.
  10. Thank you so much for your reply. Im not very familiar with Java and the constant queries to the database can really seemed to be a problem... I see some forums that shows online/offline status for their msn/yahoo accounts. Im thinking of using MSN messenger as an alternative. does anyone know how i can show the status?
  11. Im trying to write a "Sales Chat" function where a customer clicks on a button to enable live chat with customer support. Im not new to PHP but i have no idea how to approach this. Any help is appreciated. Thanx in advance.
  12. Im trying to create a page where it compares all the items that have been checked by the user. I'm thinking of creating a temporary table to hold the checked item id and call the related data from database on the comparison page. Im not sure if this is the right way to approach this type of feature, can someone please point me in the right direction. Thanx in advance.
  13. Thank you for your reply, can the technology only be done in Flash? If not, what other languages can I use or is there any ready-to-use freeware I can use?
  14. Im trying to write a feature where customers records their voice online by a simple click of a button on the page to begin submitting an audio stream to the server. Basically, once the "record" button was hit by the client, an audio stream would be generated by the client's microphone and would be recorded on the server, encoded as an MP3. The point would be to allow web users to record short audio MP3s directly to the server without any other software than their browser, and with only a standard microphone. Ive seen it done in odeo.com but its written in Flash, Im wondering if this is possible in PHP?
×
×
  • 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.