Programming :: Make Data Persist Through Webpages Via Forms?

Aug 17, 2010

For a website I'm making in PHP, I need a link on a particular dynamically generated page, called "Make a friend". Clicking this will take the user to a page where they have to provide their username and password, and if it's correct, the database will be updated. When the "make a friend" page is generated, the link will have a ?author=32 (say) argument, to reflect the author's id in the database. Now my problem is, that I need the author AND username and password as arguments to the "make a friend" script. How do I do this?
Instead of making the link a link, I've been toying with the idea of making it a form button (which will look better anyway), and using a <input type="hidden"> argument, for the NEXT page, which will be the page requesting the username and password, but I still can't seem to come up with a viable solution somehows.

View 4 Replies


ADVERTISEMENT

Programming :: Transmitting Data Across Webpages?

Sep 18, 2010

For a page I'm making, there'll be a "make a friend" link, upon clicking which, the user will be taken to a login page, so that they can authenticate themselves (i.e. WHO wants to make a friend). I want the link to be processed by a "makefriendlogin.php" script which will have "person" as an argument, ie. makefriendlogin.php?person=26 (the number comes from a database, don't worry about it). My question is, how do I write the makefriendlogin.php script, so that the "author" argument will be available to the "makefriend.php" script that'll actually do the authenticating for the user when they enter their name and password?

I thought of something like this:

makefriendlogin.php:
<form method="post" action="makefriend.php">
<input name="username" type="text">
<input name="password" type="password">
<?php

[Code].....

View 3 Replies View Related

Software :: Make A SSH Persist After Tty Close?

Jul 1, 2010

I use a reverse SSH tunnel to log into my university machine from home. In order to do so, i start the java client that let me have ssh access to my university machine (since is behind a nat), then start the ssh -R command. However the java client is defective and brings my firefox to 99% cpu and ram leak, If I close the java client, i also lose the ssh -R tunnel and the connection. I tried to give disown, but again when the TTy is closed i also lose the tunnel. Is there any way to make it persistent? at least for an hour once i have closed the java client?

View 3 Replies View Related

Ubuntu Multimedia :: How To Make UTGOTY Preferences Persist

Dec 1, 2010

Due to some foolishness on my part I have needed to reinstall UT GOTY on my Ubuntu Karmic PC. I have run the loki installer fine and the game runs but every time I load it up I am back to Player as my name and the default video settings. For some reason my changes are not being saved.

The loki readme states that a .loki/ut folder is set up in the ?home folder and this is where all the config is stored. There isnt one shown in Nautilus BUT if i try to create one it says it is already in use. So I had a look through the CLI and got this:

Code:
saric@saric-desktop:~/.loki/ut$ ls
install_dir System
Not sure what this means.

I did note during the install that the shell kept saying it couldnt create the .loki/ut directory but it seems to be there. Can anyone shed some light on how to get my preferences to stick. I have a hankering for some fragging.

View 1 Replies View Related

Programming :: Possible To Preview Forms In Qt Designer?

Feb 11, 2010

In qt designer is possible to preview forms in various widget styles. This behaves somewhat like an interpreter. Does anyone know how this is done?

View 1 Replies View Related

Programming :: Can't Upload Images With HTML Forms?

Feb 16, 2010

Well, the title says it all. I have a form like this in my document:

<form enctype="multipart/form-data" name="profile" method="post" action="?">
<input type="hidden" name="MAX_FILE_SIZE" value="250000">
Select image:<input type="file" name="image" />
<br />

[code]...

I even printed the $_FILES array and it looks like this:

Array ( [image] => Array ( [name] => bojan.jpg [type] => image/jpeg [tmp_name] => /var/upload/phpjarPwZ [error] => 0 [size] => 10096 ) )

But the problem is that this file never gets saved to /var/upload directory (I changed php.ini file, so that uploaded files should be saved into /var/upload. I tried /var/tmp as well, but it's the same). Here are also the permissions of this dir:

drwxr-xr-x 2 apache apache 48 2010-02-17 00:30 upload

BTW, I use Mandriva 2010 64 bit distribution. I spent last two days searching for solution on internet forums, asking people and made absolutely no progress. is it possible to debug what is happening with the supposedly uploaded file? I mean any logs, where I could find trace, what's going wrong? I tried to check /var/log/httpd and files in there, but no success either...

View 7 Replies View Related

Programming :: Calculate Data And Make It Into New Column Using Awk?

May 24, 2011

i've been using a awk script to calculate my data... i have 3 files:

file a1.txt:

2
3
4

[code]....

the results were (3.5, 6 and 3) which is pretty easy.. now i want to combine all this into 1 file and each have different columns and called it avg.txt which have something like this in the end:

3.5 6 3

View 1 Replies View Related

Debian :: Konqeror - Make It Load Webpages Faster?

Apr 29, 2010

I put the KDE NOIPV6 in the /etc/environment file, but nothing happened it seems.

The problem = Midori / other browsers are too unstable with Flash; but Konqueror is lightning-fast with Flash and apparently takes up the least resources too. But the problem with that is, the aforementioned 20 seconds to 2 minute web page load time, even though I have 5-8 MBps cable Internet.

Midori is a little slow too to load web pages, now that I think about it, but faster once I have first visited a domain.

View 7 Replies View Related

Programming :: Get Data From Serial Port Function Read() Blocks When Data Not Available?

Jun 11, 2009

I am using read() in c++ to get data from a serial port. However, if no data is available on the serial port the function blocks until dta arrives.Example code:

//------------------------------------------------------------
char m_readBuffer[255] = {0};
char* p_curChar = m_readBuffer;

[code]...

View 1 Replies View Related

Programming :: Data Directory In Automake - Data Is Always Read-only ?

May 9, 2010

I have some data files that should be distributed with my program. Using dist_pkgdata_DATA in Makefile.am, I get these files installed to /usr/local/data/share/package-name. The problem is that data is read-only, and my program needs to modify it. Playing with dist_sharedstate_DATA, dist_localstate_DATA, dist-data_DATA varibles, I got different installation directories, like /usr/local/com, usr/local/var, but data is always read-only.

How can I distribute modifiable data files with my package? I need some common directory for all users, or maybe local data in a user directory.

View 1 Replies View Related

Software :: Make Sure That Software RAID1 Is Recognized And Make Sure No Data Is Lost?

Jun 21, 2010

I currently have 3 500GB drives, 1 is my OS drive with Ubuntu 10.04, and the other two have been setup in a software RAID1 (mirror). I would like to resize my Ubuntu partition and install FreeBSD to try it out. How can I make sure that my software RAID1 is recognized and make sure no data is lost?

View 2 Replies View Related

Slackware :: KDE Menu Editor: Changes Do Not Persist

Oct 9, 2010

Right click on the "K". Choose Menu Editor.Save changes. However, after that,some changes persist, other changes do not and, additionally, some unexpected folders magically appear on the menu (such as "Office-1, Office-2, etc.). Some folders I created never show on the right place (the main menu) but instead tend to persist on a different submenu (such as "Graphics"). If I move them out to the place I want, they immediatly show back in the wrong place. Regular KDE manuals I've seen do not mention this issue or how to go about fixing it (they just tell you to delete an item when you want to delete it, to save the configuration after you are done, etc). Maybe I should switch to Fluxbox immediately. I use Linux mostly for production and research, and all I expect from a GUI is to let me get things done.

View 8 Replies View Related

Programming :: Makefile - Error When Run The Make Run - No Rule To Make Target - Shell.h

Sep 15, 2010

I want to gave much details as possible. working directory (~/a1/shell) in the shell directory i have Makefile. also in the shell directory i have subdirectory's (obj, src, include)

My current Makefile

Quote:

#What needs to be built to make all files and dependencies

clean:

# End of Makefile

I wanted it so: all .o files are created in the obj subdirectory, and my application, sshell, is created in the shell directory.

I am getting this error when i run the make run: No rule to make target 'shell.h', needed by 'shutil.o'. stop

View 1 Replies View Related

Programming :: Convert The String Data Type To Other Primitive Data Type?

Mar 4, 2011

I am trying to generic way to convert the string datatype to other primitive data type. To achieve, i used Template . But i getting error and couldn't resolve the issue and error reported is also clueless.

Code
====
#include <vector>
#include <iostream>
#include <string>

[Code].....

View 7 Replies View Related

Ubuntu :: IPod Persist With Root Permissions

Jan 29, 2010

Okay so my iPod auto mounts correctly to /media/IPOD (out of the box). But the permissions are set to root leaving me with no write permissions for syncing. Obviously it works if I sudo rhythmbox and then sync, but it's too much of a hassle and not very optimal (having to re-add the songs you want to sync etc).

So...How do I make my iPod mount with permissions allowing me to read & write? Previously (in 8.10 Intrepid Ibex) it used to auto mount with correct permissions.

Some info that might be worth brining up: This all started after I got my iPod back from Apple Store for repairs. I noticed they had updated the firmware and formated it to HFS+, I told them I wanted it changed to FAT32 and got it changed rather quickly. Is it possible they f'd something up when formatting? If so, how do I correct it?

View 9 Replies View Related

General :: Does XFCE Persist The Status Of Programs

Aug 1, 2011

Does XFCE persist the status of programs? If I close down and leave one program open, does XFCE restart that program the next time round?

View 2 Replies View Related

CentOS 5 Networking :: Renaming Host Does Not Persist?

Feb 18, 2010

My centos host (running under VMware) is called localhost.localdomain I've tried to rename this is a myriad of ways:

* I've altered HOSTNAME variable in /etc/sysconfig/network
* I've created a file called /etc/hostname with the new name
* I've modified /etc/hosts
* I've written the new name to /proc/sys/kernel/hostname
* I've used sysctl -w kernel.hostname=NEWNAME
* I've run hostname NEWNAME

and yet after reboot the name remains localhost.localdomain

View 10 Replies View Related

Ubuntu :: Cannot Open Tax Forms With Acroread

Jan 4, 2010

I can open other PDF files (including the instruction files for form 1040), but I cannot open the form 1040 PDF with acroread. I can open the same file with evince, but I really need to do this with acroread.

Here's the output:
Code:
t@s:~$ acroread
/home/tak/.themes/tish-aquastyle/gtk-2.0/gtkrc:57: Clearlooks configuration option "sunkenmenu" is not supported and will be ignored.
/home/tak/.themes/tish-aquastyle/gtk-2.0/gtkrc:58: Clearlooks configuration option "menuitemstyle" is not supported and will be ignored.
/home/tak/.themes/tish-aquastyle/gtk-2.0/gtkrc:59: Clearlooks configuration option "listviewitemstyle" is not supported and will be ignored.
/home/tak/.themes/tish-aquastyle/gtk-2.0/gtkrc:60: Clearlooks configuration option "progressbarstyle" is not supported and will be ignored.
/usr/lib/gio/modules/libgiogconf.so: wrong ELF class: ELFCLASS64
Failed to load module: /usr/lib/gio/modules/libgiogconf.so
/usr/lib/gio/modules/libgiofam.so: wrong ELF class: ELFCLASS64
Failed to load module: /usr/lib/gio/modules/libgiofam.so
/usr/lib/gio/modules/libgvfsdbus.so: wrong ELF class: ELFCLASS64
Failed to load module: /usr/lib/gio/modules/libgvfsdbus.so
/usr/lib/gio/modules/libgioremote-volume-monitor.so: wrong ELF class: ELFCLASS64
Failed to load module: /usr/lib/gio/modules/libgioremote-volume-monitor.so

View 4 Replies View Related

Fedora Networking :: Making Interface Persist Across Reboot?

Apr 21, 2009

running fc10 in a vmware setup Added /etc/sysconfig/network-scripts/ifcfg-eth0:0 to create another interface and all works fine (IPADDR=10.99.56.98). Would you expect this to be available after a reboot, last reboot I had to run ifup eth0:0

View 7 Replies View Related

General :: Pppd Disconnects From 3G, Doesn't Reconnect, W/ Persist Set?

May 23, 2010

I am trying to configure pppd to connect to a 3G network (Sprint, in this case) and then stay connected, reconnecting automatically if the remote connection is terminated. I have enabled the persist option. My configuration file is as follows:

hide-password
noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/cellular"

[code]....

View 1 Replies View Related

Fedora :: Persist Boot Messages On USB Live Image?

Sep 16, 2010

I've a headless custom device that boots from USB using live image. Since I cannot access the device through the network, I need a way to persist boot related log files (dmesg, boot.log, messages) to view them on another computer. I also need to know how can I run custom commands on startup of live image.

View 3 Replies View Related

Ubuntu :: Make .Iso Formate From Data?

Oct 26, 2010

How can i make my data save as .iso...?E.g i have a set of Data and i want to save that as .iso...how can i ...?

what should i use for it...?

View 6 Replies View Related

Ubuntu :: Make K3b Close A Data DVD+RW?

Dec 8, 2010

I'm trying to backup my data files to a DVD+RW and for some reason even though I set k3b to "No Multisession" k3b doesn't close the DVD. What do I have to do to make k3b burn a data DVD+RW and close the stupid thing instead of leaving it open for more data?

View 1 Replies View Related

OpenSUSE :: OooBase Crashes When Creating Forms?

Jan 17, 2010

I am using OpenSuse 11.2 and have installed Open Office 3.1.1.5 from the STABLE repository. I have connected Open Office Base to a MySql database using JDBC. All tables are visible and accessible. However, as soon as I try to create a form, at the moment I want to connect to the data source (e.g. with the 'finish' button) Base crashes and needs to be restarted. Creation of forms is thus impossible I installed OOo vers 3.1.1.5 because it was happening with 3.1.1.4 as well.

View 3 Replies View Related

OpenSUSE :: No Navigation In LibreOffice Base Forms

Mar 13, 2011

I've just installed Opensue 11.4 (gnome-desktop) on my machine. The problem is that, if I open a database-form with libreoffice base, no navigation-bar appeares. The option "navigation" from the view-menu is not active. The database uses the built-in HSQLDB in single user mode. Navigation via libreoffice-basic is possible and I can see the first record - just it is not possible to navigate manually.

View 4 Replies View Related

Ubuntu :: Can't Select Text In Forms In Firefox

Jul 21, 2010

I think it started after the last Firefox update - I can't select text in forms on any page - not even here, while I'm writing this. When I double click, the selection appears for a fraction of a second, and vanishes instantly. Neither can I select text by dragging, the same happens. I can still select everything with ctrl+A, but I can't select single words or sentences. It's driving me nuts. I've actually switched to Chrome because of this, but I'm missing a lot of Firefox's functionality there, so I'd rather stay with Mozilla.

View 5 Replies View Related

Ubuntu :: Saving PDFs With Filled-in Forms?

Oct 2, 2010

I read few threads from 2006, and at that time it seemed there was no good way to save a PDF which had data input in the form fields. Has this changed? Printing is not really an option, since I won't fill these forms in one sitting. When I save with Ubuntu's default PDF viewer, the form field data does not seem to be saved along with the PDF.

View 3 Replies View Related

Ubuntu :: Hotkey To Paste Information Into Web Forms?

Aug 3, 2011

I type my address 20 times a day. Imagine that I want to do something like CTRL + TAB + a to fill my address into a web form, or CTRL + TAB + p for my phone number.How might I do something like that?

View 6 Replies View Related

Red Hat / Fedora :: Opening Oracle 10g Forms In Mozilla

Nov 13, 2010

I'm new to linux I love it. I want to open oracle forms 10g in my mozilla which was default in Red Hat Enterprise Linux Server release 5 (Tikanga) ( I'm using). When I tried to open, getting error mess "Install missing plugins". I tried to install plugins manually but no use. Some one said I need to change the "pluginreg.dat" file. But I didn't find that file " /usr/lib/mozilla/plugins " to change.

View 3 Replies View Related

OpenSUSE Network :: Persist TCP Congestion Control Algorithm Change?

Jan 27, 2011

OpenSuSE 11.3 (but this is not likely a distro specific issue)Kernel 2.6.34.7, but likely applies to a number of previousAm close to launching a more extensive webpage describing in detail why and how this configuration is important, but I'm missing up to date information on how to persist the config. By default, changing the TCP Congestion Control algorithm only modifies the current system session. Docs I've read recommend that the command resetting the algorithm be written to Code:/etc/rc.d/rc.dAm confused with all the different config files, but I suspect either an existing file should be modified or an additional file should be modified in

Code:
/etc/rc.d/rc5.d/
Question:

[code]....

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved